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.

feat(base-ui): notification component (#320)

Dushusir3b8aa4eeff6a
diff --git a/packages/base-ui/package.json b/packages/base-ui/package.json
index 2ef76ac786..965317a67f 100644
--- a/packages/base-ui/package.json
+++ b/packages/base-ui/package.json
@@ -52,6 +52,7 @@
"localforage": "^1.10.0",
"rc-dropdown": "^4.1.0",
"rc-menu": "^9.12.2",
+ "rc-notification": "^5.3.0",
"rc-tooltip": "^6.1.1",
"react": "^18.2.0",
"react-colorful": "^5.6.1",
@@ -76,7 +77,7 @@
"@vitejs/plugin-react": "^4.1.0",
"@vitest/coverage-v8": "^0.34.5",
"esbuild": "^0.19.3",
- "happy-dom": "^12.2.0",
+ "happy-dom": "^12.9.1",
"less": "^4.2.0",
"storybook": "^7.4.6",
"ts-node": "^10.9.1",
diff --git a/packages/base-ui/src/Components/Notification/Notification.stories.tsx b/packages/base-ui/src/Components/Notification/Notification.stories.tsx
new file mode 100644
index 0000000000..718b41b729
--- /dev/null
+++ b/packages/base-ui/src/Components/Notification/Notification.stories.tsx
@@ -0,0 +1,64 @@
+import type { Meta } from '@storybook/react';
+
+import { Button } from '../Button';
+import { Notification, notification } from './Notification';
+
+const meta: Meta<typeof Notification> = {
+ title: 'Components / Notification',
+ component: Notification,
+ parameters: {
+ layout: 'centered',
+ },
+ tags: ['autodocs'],
+ args: {},
+};
+
+export default meta;
+
+export const Playground = {
+ render: () => (
+ <>
+ <Button
+ type="primary"
+ onClick={() =>
+ notification.show({
+ type: 'success',
+ title: 'Notification Success',
+ content: 'Notification content',
+ })
+ }
+ >
+ Notification Success
+ </Button>
+ <Button
+ type="default"
+ onClick={() =>
+ notification.show({ type: 'info', title: 'Notification Info', content: 'Notification content' })
+ }
+ >
+ Notification Info
+ </Button>
+ <Button
+ type="text"
+ onClick={() =>
+ notification.show({
+ type: 'warning',
+ title: 'Notification Warning',
+ content: 'Notification content',
+ })
+ }
+ >
+ Notification Warning
+ </Button>
+ <Button
+ type="primary"
+ danger
+ onClick={() =>
+ notification.show({ type: 'error', title: 'Notification Error', content: 'Notification content' })
+ }
+ >
+ Notification Error
+ </Button>
+ </>
+ ),
+};
diff --git a/packages/base-ui/src/Components/Notification/Notification.tsx b/packages/base-ui/src/Components/Notification/Notification.tsx
new file mode 100644
index 0000000000..48918ceae5
--- /dev/null
+++ b/packages/base-ui/src/Components/Notification/Notification.tsx
@@ -0,0 +1,153 @@
+import { Close16, Fail16, Success16, Warning16 } from '@univerjs/icons';
+import { useNotification } from 'rc-notification';
+import { Placement } from 'rc-notification/es/interface';
+import { useEffect, useRef } from 'react';
+import { createRoot } from 'react-dom/client';
+import { Subject } from 'rxjs';
+
+import { joinClassNames } from '../../Utils/util';
+import styles from './index.module.less';
+
+export type NotificationType = 'success' | 'info' | 'warning' | 'error';
+
+const iconMap = {
+ success: <Success16 className={styles.notificationIconSuccess} />,
+ info: <Warning16 className={styles.notificationIconInfo} />,
+ warning: <Warning16 className={styles.notificationIconWarning} />,
+ error: <Fail16 className={styles.notificationIconError} />,
+};
+
+export interface INotificationMethodOptions {
+ /**
+ * Component type, optional success, warning, error
+ */
+ type: NotificationType;
+ /**
+ * The title text of the notification
+ */
+ title: string;
+ /**
+ * The content text of the notification
+ */
+ content: string;
+ /**
+ * popup position
+ */
+ placement?: Placement;
+ /**
+ * Automatic close time
+ */
+ duration?: number;
+ /**
+ * Whether to support closing
+ */
+ closable?: boolean;
+ /**
+ * The number of lines of content text. Ellipses will be displayed beyond the line number.
+ */
+ lines?: number;
+}
+
+interface INotificationProps extends INotificationMethodOptions {
+ /**
+ * close button icon
+ */
+ closeIcon?: React.ReactNode;
+
+ /**
+ * The maximum number of displays. When the limit is exceeded, the oldest message will be automatically closed.
+ */
+ maxCount?: number;
+}
+
+export const notificationObserver = new Subject<INotificationMethodOptions>();
+
+export const PureContent = (props: INotificationMethodOptions) => {
+ const { type, content, title, lines = 0 } = props;
+
+ const contentClassName = joinClassNames(styles.notificationContent, {
+ [styles.notificationContentEllipsis]: lines !== 0,
+ });
+
+ return (
+ <>
+ <span className={styles.notificationIcon}>{iconMap[type]}</span>
+ <div className={styles.notificationContentContainer}>
+ <span className={styles.notificationTitle}>{title}</span>
+ <span className={contentClassName} style={{ WebkitLineClamp: lines }}>
+ {content}
+ </span>
+ </div>
+ </>
+ );
+};
+
+export function Notification(props: INotificationProps) {
+ const { maxCount = 3 } = props;
+ const [api, contextHolder] = useNotification({
+ prefixCls: styles.notification,
+ maxCount,
+ closeIcon: <Close16 />,
+ motion: {
+ motionName: styles.notificationFade,
+ motionAppear: true,
+ motionEnter: true,
+ motionLeave: true,
+ },
+ });
+
+ const observerRef = useRef(notificationObserver);
+
+ useEffect(() => {
+ const subscription = observerRef.current.subscribe((options) => {
+ api.open({
+ content: (
+ <PureContent
+ content={options.content}
+ type={options.type}
+ title={options.title}
+ lines={options.lines}
+ />
+ ),
+ placement: options.placement ?? 'topRight',
+ duration: options.duration ?? 4.5,
+ closable: options.closable ?? true,
+ });
+ });
+
+ return () => {
+ subscription.unsubscribe();
+ };
+ }, []);
+
+ return <>{contextHolder}</>;
+}
+
+class NotificationInstance {
+ div: HTMLDivElement;
+ root: ReturnType<typeof createRoot>;
+
+ constructor() {
+ this.div = document.createElement('div');
+ document.body.appendChild(this.div);
+ this.root = createRoot(this.div);
+
+ this.render();
+ }
+
+ show(options: INotificationMethodOptions) {
+ notificationObserver.next(options);
+ }
+
+ render() {
+ this.root.render(<Notification content="" title="" type="success" />);
+ }
+}
+
+const instance = new NotificationInstance();
+
+const notification = {
+ show: (options: INotificationMethodOptions) => instance.show(options),
+};
+
+export { notification };
diff --git a/packages/base-ui/src/Components/Notification/index.module.less b/packages/base-ui/src/Components/Notification/index.module.less
new file mode 100644
index 0000000000..5b0be8b6af
--- /dev/null
+++ b/packages/base-ui/src/Components/Notification/index.module.less
@@ -0,0 +1,185 @@
+@import '../../Basics/CSS/Skin/default.module.less';
+
+@width: 280px;
+
+.notification {
+ position: fixed;
+ display: flex;
+ align-items: flex-end;
+ flex-direction: column;
+ box-sizing: border-box;
+ justify-content: center;
+ margin: var(--margin-xs) 0;
+
+ &-notice {
+ display: flex;
+ justify-content: space-between;
+ padding: var(--padding-lg);
+ font-size: var(--font-size-lg);
+ background-color: rgb(var(--color-white));
+ border-radius: var(--border-radius-base);
+ box-shadow: var(--box-shadow-lg);
+ gap: var(--margin-xs);
+ width: @width;
+
+ &-wrapper {
+ margin: var(--margin-xs) var(--margin-base);
+ }
+
+ &-content {
+ display: inline-flex;
+ align-items: center;
+ align-items: flex-start;
+ gap: var(--margin-xs);
+ }
+
+ &-close {
+ color: rgb(var(--text-color-secondary));
+
+ cursor: pointer;
+ outline: none;
+ width: fit-content;
+ height: fit-content;
+ padding: var(--padding-xs);
+ border-radius: var(--border-radius-base);
+ transition: background-color .2s;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+
+ &:hover {
+ background-color: rgb(var(--bg-color-hover));
+ }
+ }
+ }
+
+ &-icon {
+ padding: var(--padding-xs);
+
+ &-success {
+ color: rgb(var(--success-color));
+ }
+
+ &-info {
+ color: rgb(var(--info-color));
+ }
+
+ &-warning {
+ color: rgb(var(--warning-color));
+ }
+
+ &-error {
+ color: rgb(var(--error-color));
+ }
+ }
+
+ &-content-container {
+
+ display: inline-flex;
+ align-items: flex-start;
+ flex-direction: column;
+ gap: var(--margin-xs);
+ padding-top: var(--padding-xs);
+ }
+
+ &-title {
+ color: rgb(var(--text-color));
+ }
+
+ &-content {
+ color: rgb(var(--text-color-secondary));
+
+ &-ellipsis {
+ // Omit beyond the specified number of lines
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+ }
+
+ // Position
+ &-top,
+ &-topLeft,
+ &-topRight {
+ top: 0;
+ }
+
+ &-bottom,
+ &-bottomRight,
+ &-bottomLeft {
+ bottom: 0;
+ }
+
+ &-bottomRight,
+ &-topRight {
+ right: 0;
+ }
+
+ // Animation
+ &-fade {
+ overflow: hidden;
+ transition: all 0.3s;
+ }
+
+ &-fade-appear-prepare {
+ opacity: 0;
+ }
+
+ &-fade-appear-start {
+ transform: translateX(100%);
+ opacity: 0;
+ }
+
+ &-fade-appear-active {
+ transform: translateX(0);
+ opacity: 1;
+ }
+
+ .fade-effect() {
+ animation-duration: 0.3s;
+ animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
+ animation-fill-mode: both;
+ }
+
+ &-fade-appear,
+ &-fade-enter {
+ opacity: 0;
+ animation-play-state: paused;
+ .fade-effect();
+ }
+
+ &-fade-leave {
+ .fade-effect();
+ animation-play-state: paused;
+ }
+
+ &-fade-appear&-fade-appear-active,
+ &-fade-enter&-fade-enter-active {
+ animation-name: notificationFadeIn;
+ animation-play-state: running;
+ }
+
+ &-fade-leave&-fade-leave-active {
+ animation-name: notificationFadeOut;
+ animation-play-state: running;
+ }
+
+ @keyframes notificationFadeIn {
+ 0% {
+ opacity: 0;
+ }
+ 100% {
+ opacity: 1;
+ }
+ }
+
+ @keyframes notificationFadeOut {
+ 0% {
+ opacity: 1;
+ }
+ 100% {
+ opacity: 0;
+ }
+ }
+}
\ No newline at end of file
diff --git a/packages/base-ui/src/Components/Notification/test/index.test.tsx b/packages/base-ui/src/Components/Notification/test/index.test.tsx
new file mode 100644
index 0000000000..fd56ae6255
--- /dev/null
+++ b/packages/base-ui/src/Components/Notification/test/index.test.tsx
@@ -0,0 +1,27 @@
+import { fireEvent, render, screen } from '@testing-library/react';
+import { describe, expect, test } from 'vitest';
+
+import { Button } from '../../Button';
+import { notification } from '../Notification';
+
+describe('Notification', () => {
+ test('renders correctly', () => {
+ const { container } = render(
+ <Button
+ onClick={() => {
+ notification.show({
+ type: 'success',
+ title: 'success title',
+ content: 'success content',
+ });
+ }}
+ >
+ btn2
+ </Button>
+ );
+
+ fireEvent.click(container.querySelector('button')!);
+
+ expect(screen.getByText('success content')).toBeTruthy();
+ });
+});
diff --git a/packages/base-ui/src/services/notification/desktop-notification.service.ts b/packages/base-ui/src/services/notification/desktop-notification.service.ts
index 5c5e8a8ce5..794716dc58 100644
--- a/packages/base-ui/src/services/notification/desktop-notification.service.ts
+++ b/packages/base-ui/src/services/notification/desktop-notification.service.ts
@@ -1,11 +1,12 @@
import { toDisposable } from '@univerjs/core';
import { IDisposable } from '@wendellhu/redi';
-import { INotificationService, INotificationShowParams } from './notification.service';
+import { INotificationMethodOptions, notification } from '../../Components/Notification/Notification';
+import { INotificationService } from './notification.service';
export class DesktopNotificationService implements INotificationService {
- show(params: INotificationShowParams): IDisposable {
- window.alert(params.title);
+ show(params: INotificationMethodOptions): IDisposable {
+ notification.show(params);
return toDisposable(() => {});
}
diff --git a/packages/base-ui/src/services/notification/notification.service.ts b/packages/base-ui/src/services/notification/notification.service.ts
index 67f5a70e76..08b9931468 100644
--- a/packages/base-ui/src/services/notification/notification.service.ts
+++ b/packages/base-ui/src/services/notification/notification.service.ts
@@ -1,11 +1,9 @@
import { createIdentifier, IDisposable } from '@wendellhu/redi';
-export const INotificationService = createIdentifier<INotificationService>('univer.notification-service');
+import { INotificationMethodOptions } from '../../Components/Notification/Notification';
-export interface INotificationShowParams {
- title: string;
-}
+export const INotificationService = createIdentifier<INotificationService>('univer.notification-service');
export interface INotificationService {
- show(params: INotificationShowParams): IDisposable;
+ show(params: INotificationMethodOptions): IDisposable;
}
diff --git a/packages/sheets-plugin-debugger/src/commands/operations/ui-component.operation.ts b/packages/sheets-plugin-debugger/src/commands/operations/ui-component.operation.ts
new file mode 100644
index 0000000000..6a13725f4e
--- /dev/null
+++ b/packages/sheets-plugin-debugger/src/commands/operations/ui-component.operation.ts
@@ -0,0 +1,31 @@
+import { INotificationService } from '@univerjs/base-ui';
+import { CommandType, ICommand } from '@univerjs/core';
+import { IAccessor } from '@wendellhu/redi';
+
+export interface IUIComponentCommandParams {
+ value: string;
+}
+
+export const UIComponentOperation: ICommand = {
+ id: 'debugger.operation.ui-component',
+ type: CommandType.COMMAND,
+ handler: async (accessor: IAccessor, params: IUIComponentCommandParams) => {
+ const notificationService = accessor.get(INotificationService);
+ const { value = '' } = params;
+ const type =
+ value.indexOf('Success') > -1
+ ? 'success'
+ : value.indexOf('Info') > -1
+ ? 'info'
+ : value.indexOf('Warning') > -1
+ ? 'warning'
+ : 'error';
+ notificationService.show({
+ type,
+ content: value || 'Notification Content',
+ title: 'Notification Title',
+ });
+
+ return true;
+ },
+};
diff --git a/packages/sheets-plugin-debugger/src/controllers/debugger.controller.ts b/packages/sheets-plugin-debugger/src/controllers/debugger.controller.ts
index f5b43b619f..76e8debaa5 100644
--- a/packages/sheets-plugin-debugger/src/controllers/debugger.controller.ts
+++ b/packages/sheets-plugin-debugger/src/controllers/debugger.controller.ts
@@ -4,7 +4,8 @@ import { Inject, Injector } from '@wendellhu/redi';
import { LocaleOperation } from '../commands/operations/locale.operation';
import { ThemeOperation } from '../commands/operations/theme.operation';
-import { LocaleMenuItemFactory, ThemeMenuItemFactory } from './menu';
+import { UIComponentOperation } from '../commands/operations/ui-component.operation';
+import { LocaleMenuItemFactory, ThemeMenuItemFactory, UIComponentMenuItemFactory } from './menu';
export class DebuggerController extends Disposable {
constructor(
@@ -15,13 +16,13 @@ export class DebuggerController extends Disposable {
super();
this._initializeContextMenu();
- [LocaleOperation, ThemeOperation].forEach((command) =>
+ [LocaleOperation, ThemeOperation, UIComponentOperation].forEach((command) =>
this.disposeWithMe(this._commandService.registerCommand(command))
);
}
private _initializeContextMenu() {
- [LocaleMenuItemFactory, ThemeMenuItemFactory].forEach((factory) => {
+ [LocaleMenuItemFactory, ThemeMenuItemFactory, UIComponentMenuItemFactory].forEach((factory) => {
this.disposeWithMe(this._menuService.addMenuItem(this._injector.invoke(factory)));
});
}
diff --git a/packages/sheets-plugin-debugger/src/controllers/menu.ts b/packages/sheets-plugin-debugger/src/controllers/menu.ts
index 0fb9b5c44b..f36dc380c5 100644
--- a/packages/sheets-plugin-debugger/src/controllers/menu.ts
+++ b/packages/sheets-plugin-debugger/src/controllers/menu.ts
@@ -10,6 +10,7 @@ import { IAccessor } from '@wendellhu/redi';
import { LocaleOperation } from '../commands/operations/locale.operation';
import { ThemeOperation } from '../commands/operations/theme.operation';
+import { UIComponentOperation } from '../commands/operations/ui-component.operation';
export function LocaleMenuItemFactory(accessor: IAccessor): IMenuSelectorItem {
return {
@@ -54,3 +55,32 @@ export function ThemeMenuItemFactory(accessor: IAccessor): IMenuSelectorItem {
],
};
}
+export function UIComponentMenuItemFactory(accessor: IAccessor): IMenuSelectorItem {
+ return {
+ id: UIComponentOperation.id,
+ icon: 'ShortcutIcon',
+ title: 'debugger.uiComponent.title',
+ tooltip: 'debugger.uiComponent.tooltip',
+ display: DisplayTypes.ICON,
+ type: MenuItemType.SELECTOR,
+ positions: [MenuPosition.TOOLBAR],
+ selections: [
+ {
+ label: 'Notification Success',
+ value: 'Notification Success random string to test Notification Success random string to test Notification Success random string to test Notification Success random string to test Notification Success random string to test',
+ },
+ {
+ label: 'Notification Info',
+ value: 'Notification Info',
+ },
+ {
+ label: 'Notification Warning',
+ value: 'Notification Warning',
+ },
+ {
+ label: 'Notification Error',
+ value: 'Notification Error',
+ },
+ ],
+ };
+}
diff --git a/packages/sheets-plugin-debugger/src/locale/en.ts b/packages/sheets-plugin-debugger/src/locale/en.ts
index 8c777ff355..a04f51faca 100644
--- a/packages/sheets-plugin-debugger/src/locale/en.ts
+++ b/packages/sheets-plugin-debugger/src/locale/en.ts
@@ -8,5 +8,9 @@ export default {
title: 'Theme (Debugger Tools)',
tooltip: 'Theme (Debugger Tools)',
},
+ uiComponent: {
+ title: 'UI Component (Debugger Tools)',
+ tooltip: 'UI Component Tooltip (Debugger Tools)',
+ },
},
};
diff --git a/packages/sheets-plugin-debugger/src/locale/zh.ts b/packages/sheets-plugin-debugger/src/locale/zh.ts
index 4d153b3ccc..e9f6b840c9 100644
--- a/packages/sheets-plugin-debugger/src/locale/zh.ts
+++ b/packages/sheets-plugin-debugger/src/locale/zh.ts
@@ -8,5 +8,9 @@ export default {
title: '主题 (调试工具)',
tooltip: '主题 (调试工具)',
},
+ uiComponent: {
+ title: '组件 (Debugger Tools)',
+ tooltip: '组件提示 (Debugger Tools)',
+ },
},
};
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 5ebef3afd7..a2e4d2261b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -590,6 +590,9 @@ importers:
rc-menu:
specifier: ^9.12.2
+ rc-notification:
+ specifier: ^5.3.0
rc-tooltip:
specifier: ^6.1.1
@@ -658,8 +661,8 @@ importers:
specifier: ^0.19.3
version: 0.19.3
happy-dom:
- specifier: ^12.2.0
- version: 12.2.0
+ specifier: ^12.9.1
+ version: 12.9.1
less:
specifier: ^4.2.0
version: 4.2.0
@@ -671,7 +674,7 @@ importers:
version: 10.9.1(@types/[email protected])([email protected])
vitest:
specifier: ^0.34.5
vitest-canvas-mock:
specifier: ^0.3.3
version: 0.3.3([email protected])
@@ -693,7 +696,7 @@ importers:
version: 0.19.3
vitest:
specifier: ^0.34.5
packages/core:
dependencies:
@@ -2413,7 +2416,7 @@ packages:
'@babel/plugin-transform-unicode-regex': 7.22.5(@babel/[email protected])
'@babel/plugin-transform-unicode-sets-regex': 7.22.5(@babel/[email protected])
'@babel/preset-modules': 0.1.6-no-external-plugins(@babel/[email protected])
- '@babel/types': 7.23.0
+ '@babel/types': 7.22.17
babel-plugin-polyfill-corejs2: 0.4.5(@babel/[email protected])
babel-plugin-polyfill-corejs3: 0.8.3(@babel/[email protected])
babel-plugin-polyfill-regenerator: 0.5.2(@babel/[email protected])
@@ -2553,7 +2556,7 @@ packages:
/@changesets/[email protected]:
resolution: {integrity: sha512-FMpKF1fRlJyCZVYHr3CbinpZZ+6MwvOtWUuO8uo+svcATEoc1zRDcj23pAurJ2TZ/uVz1wFHH6K3NlACy0PLew==}
dependencies:
- '@babel/runtime': 7.23.1
+ '@babel/runtime': 7.23.2
'@changesets/config': 2.3.1
'@changesets/get-version-range-type': 0.3.2
'@changesets/git': 2.0.0
@@ -2571,7 +2574,7 @@ packages:
/@changesets/[email protected]:
resolution: {integrity: sha512-xJkWX+1/CUaOUWTguXEbCDTyWJFECEhmdtbkjhn5GVBGxdP/JwaHBIU9sW3FR6gD07UwZ7ovpiPclQZs+j+mvg==}
dependencies:
- '@babel/runtime': 7.23.1
+ '@babel/runtime': 7.23.2
'@changesets/errors': 0.1.4
'@changesets/get-dependents-graph': 1.3.6
'@changesets/types': 5.2.1
@@ -2655,7 +2658,7 @@ packages:
/@changesets/[email protected]:
resolution: {integrity: sha512-6IwKTubNEgoOZwDontYc2x2cWXfr6IKxP3IhKeK+WjyD6y3M4Gl/jdQvBw+m/5zWILSOCAaGLu2ZF6Q+WiPniw==}
dependencies:
- '@babel/runtime': 7.23.1
+ '@babel/runtime': 7.23.2
'@changesets/assemble-release-plan': 5.2.4
'@changesets/config': 2.3.1
'@changesets/pre': 1.0.14
@@ -2671,7 +2674,7 @@ packages:
/@changesets/[email protected]:
resolution: {integrity: sha512-enUVEWbiqUTxqSnmesyJGWfzd51PY4H7mH9yUw0hPVpZBJ6tQZFMU3F3mT/t9OJ/GjyiM4770i+sehAn6ymx6A==}
dependencies:
- '@babel/runtime': 7.23.1
+ '@babel/runtime': 7.23.2
'@changesets/errors': 0.1.4
'@changesets/types': 5.2.1
'@manypkg/get-packages': 1.1.3
@@ -2696,7 +2699,7 @@ packages:
/@changesets/[email protected]:
resolution: {integrity: sha512-dTsHmxQWEQekHYHbg+M1mDVYFvegDh9j/kySNuDKdylwfMEevTeDouR7IfHNyVodxZXu17sXoJuf2D0vi55FHQ==}
dependencies:
- '@babel/runtime': 7.23.1
+ '@babel/runtime': 7.23.2
'@changesets/errors': 0.1.4
'@changesets/types': 5.2.1
'@manypkg/get-packages': 1.1.3
@@ -2706,7 +2709,7 @@ packages:
/@changesets/[email protected]:
resolution: {integrity: sha512-T8BJ6JS6j1gfO1HFq50kU3qawYxa4NTbI/ASNVVCBTsKquy2HYwM9r7ZnzkiMe8IEObAJtUVGSrePCOxAK2haQ==}
dependencies:
- '@babel/runtime': 7.23.1
+ '@babel/runtime': 7.23.2
'@changesets/git': 2.0.0
'@changesets/logger': 0.0.5
'@changesets/parse': 0.3.16
@@ -2727,7 +2730,7 @@ packages:
/@changesets/[email protected]:
resolution: {integrity: sha512-Dbamr7AIMvslKnNYsLFafaVORx4H0pvCA2MHqgtNCySMe1blImEyAEOzDmcgKAkgz4+uwoLz7demIrX+JBr/Xw==}
dependencies:
- '@babel/runtime': 7.23.1
+ '@babel/runtime': 7.23.2
'@changesets/types': 5.2.1
fs-extra: 7.0.1
human-id: 1.0.2
@@ -3570,7 +3573,7 @@ packages:
/@manypkg/[email protected]:
resolution: {integrity: sha512-fo+QhuU3qE/2TQMQmbVMqaQ6EWbMhi4ABWP+O4AM1NqPBuy0OrApV5LO6BrrgnhtAHS2NH6RrVk9OL181tTi8A==}
dependencies:
- '@babel/runtime': 7.23.1
+ '@babel/runtime': 7.23.2
'@changesets/types': 4.1.0
'@manypkg/find-root': 1.1.0
fs-extra: 8.1.0
@@ -3926,7 +3929,7 @@ packages:
'@types/react-dom':
optional: true
dependencies:
- '@babel/runtime': 7.23.1
+ '@babel/runtime': 7.23.2
'@radix-ui/number': 1.0.1
'@radix-ui/primitive': 1.0.1
'@radix-ui/react-collection': 1.0.3(@types/[email protected])(@types/[email protected])([email protected])([email protected])
@@ -4053,7 +4056,7 @@ packages:
'@types/react-dom':
optional: true
dependencies:
- '@babel/runtime': 7.23.1
+ '@babel/runtime': 7.23.2
'@radix-ui/primitive': 1.0.1
'@radix-ui/react-context': 1.0.1(@types/[email protected])([email protected])
'@radix-ui/react-direction': 1.0.1(@types/[email protected])([email protected])
@@ -8426,6 +8429,17 @@ packages:
whatwg-mimetype: 3.0.0
dev: true
+ resolution: {integrity: sha512-UvQ3IwKn1G3iiNCdTrhijdLGqf8Vj7d3OpmYcPwlKakjFy83oYbW6TmOKDLMTVLO9whmOC1HIpS09wf/14k7cA==}
+ dependencies:
+ css.escape: 1.5.1
+ entities: 4.5.0
+ iconv-lite: 0.6.3
+ webidl-conversions: 7.0.0
+ whatwg-encoding: 2.0.0
+ whatwg-mimetype: 3.0.0
+ dev: true
+
resolution: {integrity: sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==}
engines: {node: '>=6'}
@@ -10627,6 +10641,21 @@ packages:
react-dom: 18.2.0([email protected])
dev: false
+ resolution: {integrity: sha512-WCf0uCOkZ3HGfF0p1H4Sgt7aWfipxORWTPp7o6prA3vxwtWhtug3GfpYls1pnBp4WA+j8vGIi5c2/hQRpGzPcQ==}
+ engines: {node: '>=8.x'}
+ peerDependencies:
+ react: '>=16.9.0'
+ react-dom: '>=16.9.0'
+ dependencies:
+ '@babel/runtime': 7.23.2
+ classnames: 2.3.2
+ react: 18.2.0
+ react-dom: 18.2.0([email protected])
+ dev: false
+
resolution: {integrity: sha512-nsUm78jkYAoPygDAcGZeC2VwIg/IBGSodtOY3pMof4W3M9qRJgqaDYm03ZayHlde3I6ipliAxbN0RUcGf5KOzw==}
peerDependencies:
@@ -12412,7 +12441,7 @@ packages:
vitest: '*'
dependencies:
jest-canvas-mock: 2.5.2
dev: true
@@ -12547,6 +12576,72 @@ packages:
- terser
dev: true
+ resolution: {integrity: sha512-CPI68mmnr2DThSB3frSuE5RLm9wo5wU4fbDrDwWQQB1CWgq9jQVoQwnQSzYAjdoBOPoH2UtXpOgHVge/uScfZg==}
+ engines: {node: '>=v14.18.0'}
+ hasBin: true
+ peerDependencies:
+ '@edge-runtime/vm': '*'
+ '@vitest/browser': '*'
+ '@vitest/ui': '*'
+ happy-dom: '*'
+ jsdom: '*'
+ playwright: '*'
+ safaridriver: '*'
+ webdriverio: '*'
+ peerDependenciesMeta:
+ '@edge-runtime/vm':
+ optional: true
+ '@vitest/browser':
+ optional: true
+ '@vitest/ui':
+ optional: true
+ happy-dom:
+ optional: true
+ jsdom:
+ optional: true
+ playwright:
+ optional: true
+ safaridriver:
+ optional: true
+ webdriverio:
+ optional: true
+ dependencies:
+ '@types/chai': 4.3.6
+ '@types/chai-subset': 1.3.3
+ '@types/node': 18.14.0
+ '@vitest/expect': 0.34.5
+ '@vitest/runner': 0.34.5
+ '@vitest/snapshot': 0.34.5
+ '@vitest/spy': 0.34.5
+ '@vitest/utils': 0.34.5
+ acorn: 8.10.0
+ acorn-walk: 8.2.0
+ cac: 6.7.14
+ chai: 4.3.8
+ debug: 4.3.4
+ happy-dom: 12.9.1
+ local-pkg: 0.4.3
+ magic-string: 0.30.3
+ pathe: 1.1.1
+ picocolors: 1.0.0
+ std-env: 3.4.3
+ strip-literal: 1.3.0
+ tinybench: 2.5.1
+ tinypool: 0.7.0
+ vite: 4.4.9(@types/[email protected])([email protected])
+ vite-node: 0.34.5(@types/[email protected])([email protected])
+ why-is-node-running: 2.2.2
+ transitivePeerDependencies:
+ - less
+ - lightningcss
+ - sass
+ - stylus
+ - sugarss
+ - supports-color
+ - terser
+ dev: true
+
resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==}
dependencies: