Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: export types from all facade modules #33

Merged
merged 2 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/preset-docs-collaboration/src/umd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import '@univerjs-pro/collaboration-client/facade';

import '@univerjs-pro/collaboration-client-ui/lib/index.css';

export type * from '@univerjs-pro/collaboration-client/facade';

export interface IUniverDocsCollaborationPresetConfig {
universerEndpoint?: string;
}
Expand Down
5 changes: 4 additions & 1 deletion packages/preset-docs-core/src/umd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@ import { UniverFormulaEnginePlugin } from '@univerjs/engine-formula';
import { UniverRenderEnginePlugin } from '@univerjs/engine-render';
import { type IUniverUIConfig, UniverUIPlugin } from '@univerjs/ui';

import '@univerjs/docs-ui/facade';

import '@univerjs/design/lib/index.css';
import '@univerjs/ui/lib/index.css';
import '@univerjs/docs-ui/lib/index.css';
import '@univerjs/docs-ui/facade';

export type * from '@univerjs/docs-ui/facade';

export interface IUniverDocsCorePresetConfig extends
Pick<IUniverUIConfig, 'container' | 'header' | 'footer' | 'toolbar' | 'menu' | 'contextMenu' | 'disableAutoFocus'> {
Expand Down
8 changes: 8 additions & 0 deletions packages/preset-sheets-advanced/src/umd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ import '@univerjs-pro/sheets-print/lib/index.css';
import '@univerjs-pro/sheets-chart-ui/lib/index.css';
import '@univerjs-pro/sheets-sparkline-ui/lib/index.css';

export type * from '@univerjs-pro/engine-formula/facade';
export type * from '@univerjs-pro/exchange-client/facade';
export type * from '@univerjs-pro/sheets-chart-ui/facade';
export type * from '@univerjs-pro/sheets-pivot/facade';
export type * from '@univerjs-pro/sheets-print/facade';
export type * from '@univerjs-pro/sheets-sparkline/facade';
export type * from '@univerjs/network/facade';

export interface IUniverSheetsAdvancedPresetConfig {
universerEndpoint?: string;
license?: string;
Expand Down
4 changes: 3 additions & 1 deletion packages/preset-sheets-conditional-formatting/src/umd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ import type { IPreset } from './types';
import { UniverSheetsConditionalFormattingPlugin } from '@univerjs/sheets-conditional-formatting';
import { UniverSheetsConditionalFormattingUIPlugin } from '@univerjs/sheets-conditional-formatting-ui';

import '@univerjs/sheets-conditional-formatting/facade';

import '@univerjs/sheets-conditional-formatting-ui/lib/index.css';

import '@univerjs/sheets-conditional-formatting/facade';
export type * from '@univerjs/sheets-conditional-formatting/facade';

export function UniverSheetsConditionalFormattingPreset(): IPreset {
return {
Expand Down
8 changes: 8 additions & 0 deletions packages/preset-sheets-core/src/umd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ import '@univerjs/sheets-ui/lib/index.css';
import '@univerjs/sheets-formula-ui/lib/index.css';
import '@univerjs/sheets-numfmt-ui/lib/index.css';

export type * from '@univerjs/docs-ui/facade';
export type * from '@univerjs/engine-formula/facade';
export type * from '@univerjs/sheets-formula/facade';
export type * from '@univerjs/sheets-numfmt/facade';
export type * from '@univerjs/sheets-ui/facade';
export type * from '@univerjs/sheets/facade';
export type * from '@univerjs/ui/facade';

export interface IUniverSheetsCorePresetConfig extends
Pick<IUniverUIConfig, 'container' | 'header' | 'footer' | 'toolbar' | 'menu' | 'contextMenu' | 'disableAutoFocus'>,
Pick<IUniverSheetsUIConfig, 'formulaBar' | 'customComponents'> {
Expand Down
2 changes: 2 additions & 0 deletions packages/preset-sheets-data-validation/src/umd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import '@univerjs/sheets-data-validation/facade';

import '@univerjs/sheets-data-validation-ui/lib/index.css';

export type * from '@univerjs/sheets-data-validation/facade';

export function UniverSheetsDataValidationPreset(): IPreset {
return {
plugins: [
Expand Down
2 changes: 2 additions & 0 deletions packages/preset-sheets-drawing/src/umd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import '@univerjs/sheets-drawing-ui/facade';
import '@univerjs/drawing-ui/lib/index.css';
import '@univerjs/sheets-drawing-ui/lib/index.css';

export type * from '@univerjs/sheets-drawing-ui/facade';

export interface IUniverSheetsDrawingPresetConfig {
collaboration?: boolean;
}
Expand Down
2 changes: 2 additions & 0 deletions packages/preset-sheets-filter/src/umd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import '@univerjs/sheets-filter/facade';

import '@univerjs/sheets-filter-ui/lib/index.css';

export type * from '@univerjs/sheets-filter/facade';

export function UniverSheetsFilterPreset(): IPreset {
return {
plugins: [
Expand Down
2 changes: 2 additions & 0 deletions packages/preset-sheets-hyper-link/src/umd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import '@univerjs/sheets-hyper-link/facade';

import '@univerjs/sheets-hyper-link-ui/lib/index.css';

export type * from '@univerjs/sheets-hyper-link/facade';

export function UniverSheetsHyperLinkPreset(): IPreset {
return {
plugins: [
Expand Down
6 changes: 6 additions & 0 deletions packages/preset-sheets-node-core/src/umd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ import '@univerjs/sheets-data-validation/facade';
import '@univerjs/engine-formula/facade';
import '@univerjs/sheets-filter/facade';

export type * from '@univerjs/engine-formula/facade';
export type * from '@univerjs/sheets-data-validation/facade';
export type * from '@univerjs/sheets-filter/facade';
export type * from '@univerjs/sheets-formula/facade';
export type * from '@univerjs/sheets/facade';

export interface IUniverSheetsNodeCorePresetConfig {
/**
* The formula configuration.
Expand Down
2 changes: 2 additions & 0 deletions packages/preset-sheets-sort/src/umd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import '@univerjs/sheets-sort/facade';

import '@univerjs/sheets-sort-ui/lib/index.css';

export type * from '@univerjs/sheets-sort/facade';

export function UniverSheetsSortPreset(): IPreset {
return {
plugins: [
Expand Down
2 changes: 2 additions & 0 deletions packages/preset-sheets-thread-comment/src/umd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import '@univerjs/sheets-thread-comment/facade';

import '@univerjs/thread-comment-ui/lib/index.css';

export type * from '@univerjs/sheets-thread-comment/facade';

export interface IUniverSheetsThreadCommentPresetConfig {
}

Expand Down
Loading