Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

refactor: refactor UI components to hook in new arch

wzhudev9eff7513c752
diff --git a/packages/base-docs/package.json b/packages/base-docs/package.json
index b935fe423f..fcb8003b81 100644
--- a/packages/base-docs/package.json
+++ b/packages/base-docs/package.json
@@ -58,7 +58,7 @@
"@univerjs/base-ui": "workspace:^0.0.1",
"@univerjs/common-plugin-data": "workspace:^0.0.1",
"@univerjs/core": "workspace:^0.0.1",
- "@wendellhu/redi": "^0.12.6",
+ "@wendellhu/redi": "^0.12.7",
"css-vars-ponyfill": "^2.4.6",
"preact": "^10.12.1"
}
diff --git a/packages/base-formula-engine/package.json b/packages/base-formula-engine/package.json
index 1d3aff7808..08fd20565f 100644
--- a/packages/base-formula-engine/package.json
+++ b/packages/base-formula-engine/package.json
@@ -55,7 +55,7 @@
},
"dependencies": {
"@univerjs/core": "workspace:^0.0.1",
- "@wendellhu/redi": "^0.12.6",
+ "@wendellhu/redi": "^0.12.7",
"preact": "^10.12.1"
}
}
\ No newline at end of file
diff --git a/packages/base-render/package.json b/packages/base-render/package.json
index 9585731e79..321bc9d446 100644
--- a/packages/base-render/package.json
+++ b/packages/base-render/package.json
@@ -63,6 +63,6 @@
},
"dependencies": {
"@univerjs/core": "workspace:^0.0.1",
- "@wendellhu/redi": "^0.12.6"
+ "@wendellhu/redi": "^0.12.7"
}
}
\ No newline at end of file
diff --git a/packages/base-render/src/RenderEngine.ts b/packages/base-render/src/RenderEngine.ts
index 0b2fec41fa..7eacb9c2d2 100644
--- a/packages/base-render/src/RenderEngine.ts
+++ b/packages/base-render/src/RenderEngine.ts
@@ -10,7 +10,7 @@ export class RenderEngine extends Plugin {
private _engine: Engine;
- constructor(@Optional(Injector) override readonly _injector: Injector) {
+ constructor(_config: undefined, @Optional(Injector) override readonly _injector: Injector) {
super(PLUGIN_NAMES.BASE_RENDER);
this._engine = new Engine();
@@ -21,4 +21,4 @@ export class RenderEngine extends Plugin {
getEngine(): Engine {
return this._engine;
}
-}
+}
\ No newline at end of file
diff --git a/packages/base-sheets/package.json b/packages/base-sheets/package.json
index a69bc15102..20030d9373 100644
--- a/packages/base-sheets/package.json
+++ b/packages/base-sheets/package.json
@@ -65,6 +65,6 @@
"dependencies": {
"@univerjs/base-render": "workspace:^0.0.1",
"@univerjs/core": "workspace:^0.0.1",
- "@wendellhu/redi": "^0.12.6"
+ "@wendellhu/redi": "^0.12.7"
}
}
\ No newline at end of file
diff --git a/packages/base-slides/package.json b/packages/base-slides/package.json
index 2e52ec3a55..7c73075cbc 100644
--- a/packages/base-slides/package.json
+++ b/packages/base-slides/package.json
@@ -58,7 +58,7 @@
"@univerjs/core": "workspace:^0.0.1",
"css-vars-ponyfill": "^2.4.6",
"preact": "^10.12.1",
- "@wendellhu/redi": "^0.12.6"
+ "@wendellhu/redi": "^0.12.7"
}
}
\ No newline at end of file
diff --git a/packages/base-ui/package.json b/packages/base-ui/package.json
index 5ebf9f907f..1ecece38f1 100644
--- a/packages/base-ui/package.json
+++ b/packages/base-ui/package.json
@@ -66,7 +66,7 @@
"dependencies": {
"@univerjs/base-render": "workspace:^0.0.1",
"@univerjs/core": "workspace:^0.0.1",
- "@wendellhu/redi": "^0.12.6",
+ "@wendellhu/redi": "^0.12.7",
"preact": "^10.12.1",
"react-colorful": "^5.3.0",
"rxjs": "^7.8.1"
diff --git a/packages/base-ui/src/Components/CustomLabel/CustomLabel.module.less b/packages/base-ui/src/Components/CustomLabel/CustomLabel.module.less
new file mode 100644
index 0000000000..41556b46dd
--- /dev/null
+++ b/packages/base-ui/src/Components/CustomLabel/CustomLabel.module.less
@@ -0,0 +1,12 @@
+.color-select {
+ position: relative;
+
+ .color-select-line {
+ position: absolute;
+ width: 15px;
+ height: 5px;
+ bottom: 0px;
+ left: 50%;
+ transform: translate(-50%, 0);
+ }
+}
\ No newline at end of file
diff --git a/packages/base-ui/src/Components/CustomLabel/CustomLabel.tsx b/packages/base-ui/src/Components/CustomLabel/CustomLabel.tsx
index 5e6dd25287..02f39e8af6 100644
--- a/packages/base-ui/src/Components/CustomLabel/CustomLabel.tsx
+++ b/packages/base-ui/src/Components/CustomLabel/CustomLabel.tsx
@@ -1,22 +1,33 @@
-import { isValidElement } from 'preact';
+import { Component, isValidElement, JSX } from 'preact';
import { useContext } from 'preact/hooks';
+
import { AppContext, ICustomComponent } from '../../Common';
import { IBaseCustomLabelProps } from '../../Interfaces';
+import { DisplayTypes } from '../Select';
+
+import styles from './CustomLabel.module.less';
export function CustomLabel(props: IBaseCustomLabelProps): JSX.Element | null {
const context = useContext(AppContext);
- const { label } = props;
+ const { label, display } = props;
function getLocale(name: string) {
return context.localeService?.t(name);
}
+ // the new way to render toolbar item type to replace Label prop
+ if (display === DisplayTypes.COLOR) {
+ return <ColorSelect value={props.label} title={props.label} />;
+ }
+
if (typeof label === 'string') {
return <>{getLocale(label)}</>;
}
+
if (isValidElement(label)) {
return label;
}
+
if (label) {
const Label = context.componentManager?.get((label as ICustomComponent).name) as any;
if (Label) {
@@ -24,5 +35,28 @@ export function CustomLabel(props: IBaseCustomLabelProps): JSX.Element | null {
return <Label {...props} />;
}
}
+
return null;
}
+
+export interface IColorSelectProps {
+ icon?: string;
+ title: string;
+ /** color */
+ value: string;
+}
+
+export class ColorSelect extends Component<IColorSelectProps> {
+ render() {
+ const { value, icon } = this.props;
+
+ return (
+ <div className={styles.colorSelect}>
+ <div>
+ <CustomLabel label={{ name: icon }} />
+ </div>
+ <div className={styles.colorSelectLine} style={{ background: value }}></div>
+ </div>
+ );
+ }
+}
\ No newline at end of file
diff --git a/packages/base-ui/src/Components/Select/Select.tsx b/packages/base-ui/src/Components/Select/Select.tsx
index 51946adf41..a569f11ec8 100644
--- a/packages/base-ui/src/Components/Select/Select.tsx
+++ b/packages/base-ui/src/Components/Select/Select.tsx
@@ -24,6 +24,7 @@ export enum SelectTypes {
export enum DisplayTypes {
LABEL,
SUFFIX,
+ COLOR,
}
export interface BaseSelectChildrenProps extends BaseItemProps {
@@ -49,6 +50,8 @@ export interface BaseSelectProps {
name?: string;
suffix?: any;
tooltip?: string;
+ value?: string | number;
+ icon?: string;
}
interface IState {
@@ -84,15 +87,15 @@ export class Select extends PureComponent<BaseSelectProps, IState> {
getType(type: SelectTypes) {
switch (type) {
- case 0:
+ case SelectTypes.SINGLE:
return this.getSingle();
- case 1:
+ case SelectTypes.INPUT:
return this.getInput();
- case 3:
+ case SelectTypes.DOUBLE:
return this.getDouble();
- case 4:
+ case SelectTypes.FIX:
return this.getFix();
- case 5:
+ case SelectTypes.DOUBLEFIX:
return this.getDoubleFix();
}
}
@@ -353,13 +356,13 @@ export class Select extends PureComponent<BaseSelectProps, IState> {
};
getDoubleFix = () => {
- const { label, className = '', tooltip, onClick } = this.props;
+ const { label, className = '', tooltip, onClick, display, value, icon } = this.props;
const { menu } = this.state;
return (
<div className={`${styles.selectDouble} ${className}`}>
<Dropdown tooltip={tooltip} onClick={onClick} menu={{ menu, onClick: this.onClick }} icon={<Icon.NextIcon />}>
<div className={styles.selectLabel}>
- <CustomLabel label={label} />
+ <CustomLabel display={display} label={label} value={value} icon={icon} />
</div>
</Dropdown>
</div>
@@ -371,4 +374,4 @@ export class Select extends PureComponent<BaseSelectProps, IState> {
return <div className={styles.selectComponent}>{this.getType(type)}</div>;
}
-}
+}
\ No newline at end of file
diff --git a/packages/base-ui/src/Interfaces/CustomLabel.ts b/packages/base-ui/src/Interfaces/CustomLabel.ts
index 91443f1eaf..411f6d7199 100644
--- a/packages/base-ui/src/Interfaces/CustomLabel.ts
+++ b/packages/base-ui/src/Interfaces/CustomLabel.ts
@@ -1,7 +1,7 @@
import { ComponentChildren } from 'preact';
import { BaseComponent, JSXComponent } from '../BaseComponent';
import { ICustomComponent } from '../Common';
-import { BaseSelectChildrenProps } from '../Components/Select/Select';
+import { BaseSelectChildrenProps, DisplayTypes } from '../Components/Select/Select';
export interface ICustomLabelProps {
prefix?: string[] | string;
@@ -18,9 +18,12 @@ export interface ICustomLabelType {
}
export interface IBaseCustomLabelProps {
+ icon?: string;
+ value?: string;
label: string | ICustomComponent | ComponentChildren;
+ display?: DisplayTypes;
}
export interface CustomLabelComponent extends BaseComponent<IBaseCustomLabelProps> {
render(): JSXComponent<IBaseCustomLabelProps>;
-}
+}
\ No newline at end of file
diff --git a/packages/core/package.json b/packages/core/package.json
index b90496ca35..e730e86e80 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -56,7 +56,7 @@
"url": "https://github.com/dream-num/univer.git"
},
"dependencies": {
- "@wendellhu/redi": "^0.12.6",
+ "@wendellhu/redi": "^0.12.7",
"dayjs": "^1.11.5",
"es6-proxy-polyfill": "^2.1.1",
"nanoid": "4.0.0",
diff --git a/packages/sheets-plugin-find/package.json b/packages/sheets-plugin-find/package.json
index 934f3f6db7..65913e0a3c 100644
--- a/packages/sheets-plugin-find/package.json
+++ b/packages/sheets-plugin-find/package.json
@@ -64,6 +64,6 @@
"@univerjs/core": "workspace:^0.0.1",
"@univerjs/ui-plugin-sheets": "workspace:^0.0.1",
"preact": "^10.12.1",
- "@wendellhu/redi": "^0.12.6"
+ "@wendellhu/redi": "^0.12.7"
}
}
diff --git a/packages/sheets-plugin-formula/package.json b/packages/sheets-plugin-formula/package.json
index 5811c53c7d..34f421dba5 100644
--- a/packages/sheets-plugin-formula/package.json
+++ b/packages/sheets-plugin-formula/package.json
@@ -63,7 +63,7 @@
"@univerjs/base-ui": "workspace:^0.0.1",
"@univerjs/core": "workspace:^0.0.1",
"@univerjs/ui-plugin-sheets": "workspace:^0.0.1",
- "@wendellhu/redi": "^0.12.6",
+ "@wendellhu/redi": "^0.12.7",
"preact": "^10.12.1"
}
}
diff --git a/packages/sheets-plugin-image/package.json b/packages/sheets-plugin-image/package.json
index 1a8dc236be..5e749593c3 100644
--- a/packages/sheets-plugin-image/package.json
+++ b/packages/sheets-plugin-image/package.json
@@ -63,7 +63,7 @@
"@univerjs/common-plugin-data": "workspace:^0.0.1",
"@univerjs/ui-plugin-sheets": "workspace:^0.0.1",
"@univerjs/core": "workspace:^0.0.1",
- "@wendellhu/redi": "^0.12.6",
+ "@wendellhu/redi": "^0.12.7",
"preact": "^10.12.1"
}
}
\ No newline at end of file
diff --git a/packages/sheets-plugin-import-xlsx/package.json b/packages/sheets-plugin-import-xlsx/package.json
index e1010c3a05..2c03301a1d 100644
--- a/packages/sheets-plugin-import-xlsx/package.json
+++ b/packages/sheets-plugin-import-xlsx/package.json
@@ -59,7 +59,7 @@
"@univerjs/common-plugin-data": "workspace:^0.0.1",
"@univerjs/core": "workspace:^0.0.1",
"@univerjs/ui-plugin-sheets": "workspace:^0.0.1",
- "@wendellhu/redi": "^0.12.6",
+ "@wendellhu/redi": "^0.12.7",
"luckyexcel": "^1.0.1",
"preact": "^10.12.1"
}
diff --git a/packages/sheets-plugin-numfmt/package.json b/packages/sheets-plugin-numfmt/package.json
index df5586c138..10d847f76f 100644
--- a/packages/sheets-plugin-numfmt/package.json
+++ b/packages/sheets-plugin-numfmt/package.json
@@ -64,7 +64,7 @@
"@univerjs/common-plugin-data": "workspace:^0.0.1",
"@univerjs/core": "workspace:^0.0.1",
"@univerjs/ui-plugin-sheets": "workspace:^0.0.1",
- "@wendellhu/redi": "^0.12.6",
+ "@wendellhu/redi": "^0.12.7",
"preact": "^10.12.1"
}
}
\ No newline at end of file
diff --git a/packages/sheets-plugin-operation/package.json b/packages/sheets-plugin-operation/package.json
index 4a39056589..d12102fe95 100644
--- a/packages/sheets-plugin-operation/package.json
+++ b/packages/sheets-plugin-operation/package.json
@@ -60,6 +60,6 @@
"@univerjs/core": "workspace:^0.0.1",
"@univerjs/ui-plugin-sheets": "workspace:^0.0.1",
"preact": "^10.12.1",
- "@wendellhu/redi": "^0.12.6"
+ "@wendellhu/redi": "^0.12.7"
}
}
diff --git a/packages/ui-plugin-docs/package.json b/packages/ui-plugin-docs/package.json
index 11216a7942..a48610286b 100644
--- a/packages/ui-plugin-docs/package.json
+++ b/packages/ui-plugin-docs/package.json
@@ -58,7 +58,7 @@
"@univerjs/base-ui": "workspace:^0.0.1",
"@univerjs/core": "workspace:^0.0.1",
"@univerjs/base-docs": "workspace:^0.0.1",
- "@wendellhu/redi": "^0.12.6",
+ "@wendellhu/redi": "^0.12.7",
"css-vars-ponyfill": "^2.4.6",
"preact": "^10.12.1"
}
diff --git a/packages/ui-plugin-sheets/package.json b/packages/ui-plugin-sheets/package.json
index f445390c81..57d9a2a2e1 100644
--- a/packages/ui-plugin-sheets/package.json
+++ b/packages/ui-plugin-sheets/package.json
@@ -62,7 +62,7 @@
"@univerjs/base-sheets": "workspace:^0.0.1",
"@univerjs/base-ui": "workspace:^0.0.1",
"@univerjs/core": "workspace:^0.0.1",
- "@wendellhu/redi": "^0.12.6",
+ "@wendellhu/redi": "^0.12.7",
"css-vars-ponyfill": "^2.4.6",
"preact": "^10.12.1",
"rxjs": "^7.8.1"
diff --git a/packages/ui-plugin-sheets/src/Controller/ToolbarUIController.ts b/packages/ui-plugin-sheets/src/Controller/ToolbarUIController.ts
index a587420924..72da2fc516 100644
--- a/packages/ui-plugin-sheets/src/Controller/ToolbarUIController.ts
+++ b/packages/ui-plugin-sheets/src/Controller/ToolbarUIController.ts
@@ -115,7 +115,7 @@ export class ToolbarUIController extends Disposable {
}
private _initializeToolbar(): void {
- // TODO@wzhudev: now we register menu items that only display in the toolbar here. In fact we should register all commands and menu items and shortcuts
+ // TODO: @wzhudev: now we register menu items that only display in the toolbar here. In fact we should register all commands and menu items and shortcuts
// in a single controller. I will do that layer.
[
UndoMenuItemFactory,
diff --git a/packages/ui-plugin-sheets/src/Controller/menu.ts b/packages/ui-plugin-sheets/src/Controller/menu.ts
index 31e70a6a41..e63617f125 100644
--- a/packages/ui-plugin-sheets/src/Controller/menu.ts
+++ b/packages/ui-plugin-sheets/src/Controller/menu.ts
@@ -40,7 +40,7 @@ import {
TEXT_WRAP_CHILDREN,
VERTICAL_ALIGN_CHILDREN,
} from '../View/Toolbar/Const';
-import { ColorSelect, LineBold, LineColor } from '../View/Common';
+import { LineBold, LineColor } from '../View/Common';
import { SHEET_UI_PLUGIN_NAME } from '../Basics/Const/PLUGIN_NAME';
import styles from '../View/Toolbar/index.module.less';
@@ -341,6 +341,7 @@ export function FontSizeSelectorMenuItemFactory(accessor: IAccessor): IMenuSelec
};
}),
value$: new Observable<number>((subscriber) => {
+ const DEFAULT_SIZE = 14;
const disposable = commandService.onCommandExecuted((c) => {
const id = c.id;
if (id !== SetRangeStyleMutation.id && id !== SetSelectionsOperation.id) {
@@ -348,7 +349,7 @@ export function FontSizeSelectorMenuItemFactory(accessor: IAccessor): IMenuSelec
}
const range = selectionManager.getCurrentCell();
- const fs = range?.getFontSize();
+ const fs = range?.getFontSize() ?? DEFAULT_SIZE;
subscriber.next(fs);
});
@@ -359,28 +360,20 @@ export function FontSizeSelectorMenuItemFactory(accessor: IAccessor): IMenuSelec
}
export function TextColorSelectorMenuItemFactory(accessor: IAccessor): IMenuSelectorItem {
- const permissionService = accessor.get(IPermissionService);
const commandService = accessor.get(ICommandService);
const selectionManager = accessor.get(ISelectionManager);
return {
id: SetTextColorCommand.id,
- title: 'textColor',
+ title: 'TextColorIcon',
+ icon: 'TextColorIcon',
tooltip: 'toolbar.textColor.main',
type: MenuItemType.SELECTOR,
selectType: SelectTypes.DOUBLEFIX,
menu: [MenuPosition.TOOLBAR],
- label: {
- name: SHEET_UI_PLUGIN_NAME + ColorSelect.name,
- props: {
- getComponent: (ref: ColorSelect) => {},
- color: '#000',
- label: {
- name: 'TextColorIcon',
- },
- },
- },
+ display: DisplayTypes.COLOR,
className: styles.selectColorPickerParent,
+ // FIXME: click this toolbar icon would not trigger color change
selections: [
{
label: 'toolbar.resetColor',
@@ -414,26 +407,18 @@ export function TextColorSelectorMenuItemFactory(accessor: IAccessor): IMenuSele
}
export function BackgroundColorSelectorMenuItemFactory(accessor: IAccessor): IMenuSelectorItem {
- const permissionService = accessor.get(IPermissionService);
const commandService = accessor.get(ICommandService);
const selectionManager = accessor.get(ISelectionManager);
return {
id: SetBackgroundColorCommand.id,
- title: 'fillColor',
+ tooltip: 'toolbar.fillColor.main',
+ title: 'TextColorIcon',
type: MenuItemType.SELECTOR,
selectType: SelectTypes.DOUBLEFIX,
menu: [MenuPosition.TOOLBAR],
- label: {
- name: SHEET_UI_PLUGIN_NAME + ColorSelect.name,
- props: {
- getComponent: (ref: ColorSelect) => {},
- color: '#fff',
- label: {
- name: 'FillColorIcon',
- },
- },
- },
+ display: DisplayTypes.COLOR,
+ icon: 'FillColorIcon',
className: styles.selectColorPickerParent,
selections: [
{
@@ -732,4 +717,4 @@ export function DeleteRangeMoveUpMenuItemFactory(accessor: IAccessor): IMenuItem
title: 'rightClick.moveUp',
parentId: `${DeleteRangeCommand.id}.parent`,
};
-}
+}
\ No newline at end of file
diff --git a/packages/ui-plugin-sheets/src/View/Common/ColorSelect/ColorSelect.tsx b/packages/ui-plugin-sheets/src/View/Common/ColorSelect/ColorSelect.tsx
index 3f87b4241c..b997b2ce34 100644
--- a/packages/ui-plugin-sheets/src/View/Common/ColorSelect/ColorSelect.tsx
+++ b/packages/ui-plugin-sheets/src/View/Common/ColorSelect/ColorSelect.tsx
@@ -12,6 +12,8 @@ interface IState {
color: string;
}
+// TODO: @wzhudev: why this component is put under ui-plugin-sheet not base-ui?
+/** @deprecated use ColorSelect in base-ui plugin instead */
export class ColorSelect extends Component<IProps, IState> {
override componentDidMount(): void {
this.props.getComponent?.(this);
@@ -40,4 +42,4 @@ export class ColorSelect extends Component<IProps, IState> {
</div>
);
}
-}
+}
\ No newline at end of file
diff --git a/packages/ui-plugin-sheets/src/View/Common/ColorSelect/index.module.css b/packages/ui-plugin-sheets/src/View/Common/ColorSelect/index.module.css
deleted file mode 100644
index d2777b3979..0000000000
--- a/packages/ui-plugin-sheets/src/View/Common/ColorSelect/index.module.css
+++ /dev/null
@@ -1,11 +0,0 @@
-.color-select {
- position: relative;
-}
-.color-select .color-select-line {
- position: absolute;
- width: 15px;
- height: 5px;
- bottom: 0px;
- left: 50%;
- transform: translate(-50%, 0);
-}
diff --git a/packages/ui-plugin-sheets/src/View/Toolbar/ToolbarItem.tsx b/packages/ui-plugin-sheets/src/View/Toolbar/ToolbarItem.tsx
index 5e2eaa34d1..fd9a66807c 100644
--- a/packages/ui-plugin-sheets/src/View/Toolbar/ToolbarItem.tsx
+++ b/packages/ui-plugin-sheets/src/View/Toolbar/ToolbarItem.tsx
@@ -74,6 +74,7 @@ export class ToolbarItem extends Component<IDisplayMenuItem<IMenuItem>, IToolbar
return (
<Tooltip title={props.tooltip + (props.shortcut ? ` (${props.shortcut})` : '')} placement="bottom">
<Select
+ icon={props.icon}
className={props.className}
label={value ?? props.label}
display={props.display}
@@ -99,4 +100,4 @@ export class ToolbarItem extends Component<IDisplayMenuItem<IMenuItem>, IToolbar
</Tooltip>
);
}
-}
+}
\ No newline at end of file
diff --git a/packages/ui-plugin-slides/package.json b/packages/ui-plugin-slides/package.json
index 58d897add9..546526d5cb 100644
--- a/packages/ui-plugin-slides/package.json
+++ b/packages/ui-plugin-slides/package.json
@@ -60,6 +60,6 @@
"@univerjs/core": "workspace:^0.0.1",
"css-vars-ponyfill": "^2.4.6",
"preact": "^10.12.1",
- "@wendellhu/redi": "^0.12.6"
+ "@wendellhu/redi": "^0.12.7"
}
}
\ No newline at end of file
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 6e45814eb7..2adb9e6b22 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -585,8 +585,8 @@ importers:
specifier: workspace:^0.0.1
version: link:../core
'@wendellhu/redi':
- specifier: ^0.12.6
- version: 0.12.6
+ specifier: ^0.12.7
+ version: 0.12.7
css-vars-ponyfill:
specifier: ^2.4.6
version: 2.4.6
@@ -631,8 +631,8 @@ importers:
specifier: workspace:^0.0.1
version: link:../core
'@wendellhu/redi':
- specifier: ^0.12.6
- version: 0.12.6
+ specifier: ^0.12.7
+ version: 0.12.7
preact:
specifier: ^10.12.1
version: 10.17.1
@@ -726,8 +726,8 @@ importers:
specifier: workspace:^0.0.1
version: link:../core
'@wendellhu/redi':
- specifier: ^0.12.6
- version: 0.12.6
+ specifier: ^0.12.7
+ version: 0.12.7
devDependencies:
'@preact/preset-vite':
specifier: 2.0.0
@@ -784,8 +784,8 @@ importers:
specifier: workspace:^0.0.1
version: link:../core
'@wendellhu/redi':
- specifier: ^0.12.6
- version: 0.12.6
+ specifier: ^0.12.7
+ version: 0.12.7
devDependencies:
'@preact/preset-vite':
specifier: 2.0.0
@@ -845,8 +845,8 @@ importers:
specifier: workspace:^0.0.1
version: link:../core
'@wendellhu/redi':
- specifier: ^0.12.6
- version: 0.12.6
+ specifier: ^0.12.7
+ version: 0.12.7
css-vars-ponyfill:
specifier: ^2.4.6
version: 2.4.6
@@ -894,8 +894,8 @@ importers:
specifier: workspace:^0.0.1
version: link:../core
'@wendellhu/redi':
- specifier: ^0.12.6
- version: 0.12.6
+ specifier: ^0.12.7
+ version: 0.12.7
preact:
specifier: ^10.12.1
version: 10.17.1
@@ -1050,8 +1050,8 @@ importers:
packages/core:
dependencies:
'@wendellhu/redi':
- specifier: ^0.12.6
- version: 0.12.6
+ specifier: ^0.12.7
+ version: 0.12.7
dayjs:
specifier: ^1.11.5
version: 1.11.5
@@ -1178,8 +1178,8 @@ importers:
specifier: workspace:^0.0.1
version: link:../ui-plugin-sheets
'@wendellhu/redi':
- specifier: ^0.12.6
- version: 0.12.6
+ specifier: ^0.12.7
+ version: 0.12.7
preact:
specifier: ^10.12.1
version: 10.17.1
@@ -1248,8 +1248,8 @@ importers:
specifier: workspace:^0.0.1
version: link:../ui-plugin-sheets
'@wendellhu/redi':
- specifier: ^0.12.6
- version: 0.12.6
+ specifier: ^0.12.7
+ version: 0.12.7
preact:
specifier: ^10.12.1
version: 10.17.1
@@ -1318,8 +1318,8 @@ importers:
specifier: workspace:^0.0.1
version: link:../ui-plugin-sheets
'@wendellhu/redi':
- specifier: ^0.12.6
- version: 0.12.6
+ specifier: ^0.12.7
+ version: 0.12.7
preact:
specifier: ^10.12.1
version: 10.17.1
@@ -1388,8 +1388,8 @@ importers:
specifier: workspace:^0.0.1
version: link:../ui-plugin-sheets
'@wendellhu/redi':
- specifier: ^0.12.6
- version: 0.12.6
+ specifier: ^0.12.7
+ version: 0.12.7
luckyexcel:
specifier: ^1.0.1
version: 1.0.1
@@ -1452,8 +1452,8 @@ importers:
specifier: workspace:^0.0.1
version: link:../ui-plugin-sheets
'@wendellhu/redi':
- specifier: ^0.12.6
- version: 0.12.6
+ specifier: ^0.12.7
+ version: 0.12.7
preact:
specifier: ^10.12.1
version: 10.17.1
@@ -1522,8 +1522,8 @@ importers:
specifier: workspace:^0.0.1
version: link:../ui-plugin-sheets
'@wendellhu/redi':
- specifier: ^0.12.6
- version: 0.12.6
+ specifier: ^0.12.7
+ version: 0.12.7
preact:
specifier: ^10.12.1
version: 10.17.1
@@ -1574,8 +1574,8 @@ importers:
specifier: workspace:^0.0.1
version: link:../core
'@wendellhu/redi':
- specifier: ^0.12.6
- version: 0.12.6
+ specifier: ^0.12.7
+ version: 0.12.7
css-vars-ponyfill:
specifier: ^2.4.6
version: 2.4.6
@@ -1632,8 +1632,8 @@ importers:
specifier: workspace:^0.0.1
version: link:../core
'@wendellhu/redi':
- specifier: ^0.12.6
- version: 0.12.6
+ specifier: ^0.12.7
+ version: 0.12.7
css-vars-ponyfill:
specifier: ^2.4.6
version: 2.4.6
@@ -1693,8 +1693,8 @@ importers:
specifier: workspace:^0.0.1
version: link:../core
'@wendellhu/redi':
- specifier: ^0.12.6
- version: 0.12.6
+ specifier: ^0.12.7
+ version: 0.12.7
css-vars-ponyfill:
specifier: ^2.4.6
version: 2.4.6
@@ -1972,6 +1972,7 @@ packages:
resolution: {integrity: sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==}
engines: {node: '>=6.9.0'}
+ deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
@@ -1983,6 +1984,7 @@ packages:
resolution: {integrity: sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw==}
engines: {node: '>=6.9.0'}
+ deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-dynamic-import instead.
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
@@ -1994,6 +1996,7 @@ packages:
resolution: {integrity: sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==}
engines: {node: '>=6.9.0'}
+ deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-export-namespace-from instead.
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
@@ -2005,6 +2008,7 @@ packages:
resolution: {integrity: sha512-y7C7cZgpMIjWlKE5T7eJwp+tnRYM89HmRvWM5EQuB5BoHEONjmQ8lSNmBUwOyy/GFRsohJED51YBF79hE1djug==}
engines: {node: '>=6.9.0'}
+ deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-logical-assignment-operators instead.
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
@@ -2016,6 +2020,7 @@ packages:
resolution: {integrity: sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==}
engines: {node: '>=6.9.0'}
+ deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
@@ -2027,6 +2032,7 @@ packages:
resolution: {integrity: sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==}
engines: {node: '>=6.9.0'}
+ deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
@@ -2038,6 +2044,7 @@ packages:
resolution: {integrity: sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==}
engines: {node: '>=6.9.0'}
+ deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
@@ -2050,6 +2057,7 @@ packages:
resolution: {integrity: sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==}
engines: {node: '>=6.9.0'}
+ deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
@@ -2061,6 +2069,7 @@ packages:
resolution: {integrity: sha512-0QZ8qP/3RLDVBwBFoWAwCtgcDZJVwA5LUJRZU8x2YFfKNuFq161wK3cuGrALu5yiPu+vzwTAg/sMWVNeWeNyaw==}
engines: {node: '>=6.9.0'}
+ deprecated: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead.
peerDependencies:
'@babel/core': ^7.0.0-0
dependencies:
@@ -2624,13 +2633,13 @@ packages:
'@types/node': 20.4.7
chalk: 4.1.2
cosmiconfig: 8.2.0
- cosmiconfig-typescript-loader: 4.4.0(@types/[email protected])([email protected])([email protected])([email protected])
+ cosmiconfig-typescript-loader: 4.4.0(@types/[email protected])([email protected])([email protected])([email protected])
lodash.isplainobject: 4.0.6
lodash.merge: 4.6.2
lodash.uniq: 4.5.0
resolve-from: 5.0.0
- ts-node: 10.9.1(@types/[email protected])([email protected])
- typescript: 4.7.4
+ ts-node: 10.9.1(@types/[email protected])([email protected])
+ typescript: 4.9.5
transitivePeerDependencies:
- '@swc/core'
- '@swc/wasm'
@@ -3684,7 +3693,7 @@ packages:
resolution: {integrity: sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==}
dependencies:
'@babel/runtime': 7.22.11
- '@types/node': 12.20.24
+ '@types/node': 12.20.55
find-up: 4.1.0
fs-extra: 8.1.0
dev: true
@@ -4223,6 +4232,10 @@ packages:
resolution: {integrity: sha512-yxDeaQIAJlMav7fH5AQqPH1u8YIuhYJXYBzxaQ4PifsU0GDO38MSdmEDeRlIxrKbC6NbEaaEHDanWb+y30U8SQ==}
dev: true
+ resolution: {integrity: sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==}
+ dev: true
+
resolution: {integrity: sha512-FKyawK3o5KL16AwbeFajen8G4K3mmqUrQsehn5wNKs8IzlKHE8TfnSmILXVMVziAEcnB23u1RCFU1NT6hSyr7Q==}
dev: true
@@ -4452,8 +4465,8 @@ packages:
vite: 2.4.4
dev: true
- /@wendellhu/[email protected]:
- resolution: {integrity: sha512-mrYQUPUoCsR1YOS+Ze8T9vKGVbF6KCxXJ/gTb/MnREKOtgiuyp204B8/wFXLO452u9Vl9Apazitdip4g7wsJFw==}
+ /@wendellhu/[email protected]:
+ resolution: {integrity: sha512-HAJhOfAqD1E7O/FGEnz27psFjDq6h3xBbmN9b/j2ijAslleb71WLnHUrhRtMCgIWEm7Ktb8fkk0aK80pJsTlng==}
dev: false
@@ -4888,7 +4901,7 @@ packages:
hasBin: true
dependencies:
caniuse-lite: 1.0.30001525
- electron-to-chromium: 1.4.506
+ electron-to-chromium: 1.4.508
node-releases: 2.0.13
update-browserslist-db: 1.0.11([email protected])
dev: true
@@ -5286,7 +5299,7 @@ packages:
resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==}
dev: false
resolution: {integrity: sha512-BabizFdC3wBHhbI4kJh0VkQP9GkBfoHPydD0COMce1nJ1kJAB3F2TmJ/I7diULBKtmEWSwEbuN/KDtgnmUUVmw==}
engines: {node: '>=v14.21.3'}
peerDependencies:
@@ -5297,8 +5310,8 @@ packages:
dependencies:
'@types/node': 20.4.7
cosmiconfig: 8.2.0
- ts-node: 10.9.1(@types/[email protected])([email protected])
- typescript: 4.7.4
+ ts-node: 10.9.1(@types/[email protected])([email protected])
+ typescript: 4.9.5
dev: true
@@ -5687,8 +5700,8 @@ packages:
resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}
dev: true
- resolution: {integrity: sha512-xxGct4GPAKSRlrLBtJxJFYy74W11zX6PO9GyHgl/U+2s3Dp0ZEwAklDfNHXOWcvH7zWMpsmgbR0ggEuaYAVvHA==}
+ resolution: {integrity: sha512-FFa8QKjQK/A5QuFr2167myhMesGrhlOBD+3cYNxO9/S4XzHEXesyTD/1/xF644gC8buFPz3ca6G1LOQD0tZrrg==}
dev: true
@@ -8315,8 +8328,8 @@ packages:
resolution: {integrity: sha512-8wb9Yw966OSxApiCt0K3yNJL8pnNeIv+OEq2YMidz4FKP6nonSRoOXc80iXY4JaN2FC11B9qsNmDsm+ZOfMROA==}
dev: true
- resolution: {integrity: sha512-hrazgRSlhzacZ69LdcKfhi3Vu13z2yFfoAzmEov3yFIJlatTdVGUW6vle1zjH8qkzdCn/qGw8rapjqsObbYXAg==}
+ resolution: {integrity: sha512-vIiDxQKmRidUVp8KngT8MZSOcmRVm2zV7jbMjNYWuHcJWI0bUck3nRTGQjhpPlQenIQIBC5Vp9AhcnHbWQqafw==}
dependencies:
'@hapi/hoek': 9.3.0
'@hapi/topo': 5.1.0
@@ -10998,7 +11011,7 @@ packages:
yn: 3.1.1
dev: true
resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==}
hasBin: true
peerDependencies:
@@ -11024,7 +11037,7 @@ packages:
create-require: 1.1.1
diff: 4.0.2
make-error: 1.3.6
- typescript: 4.7.4
+ typescript: 4.9.5
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
dev: true
@@ -11172,6 +11185,12 @@ packages:
hasBin: true
dev: true
+ resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==}
+ engines: {node: '>=4.2.0'}
+ hasBin: true
+ dev: true
+
resolution: {integrity: sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw==}
dependencies:
@@ -11350,7 +11369,7 @@ packages:
hasBin: true
dependencies:
axios: 0.25.0([email protected])
- joi: 17.10.0
+ joi: 17.10.1
lodash: 4.17.21
minimist: 1.2.8
rxjs: 7.8.1