Skip to content

Commit

Permalink
feat: export types from all facade modules (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
jikkai authored Jan 8, 2025
1 parent 4b9d136 commit 8d659ff
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 5 deletions.
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
3 changes: 0 additions & 3 deletions packages/presets/src/umd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,3 @@ export function createUniver(options: CreateUniverOptions) {
univerAPI,
};
}

export * from '@univerjs/core';
export * from '@univerjs/design';

0 comments on commit 8d659ff

Please sign in to comment.