Skip to content

Commit

Permalink
refactor: rename mana-react as react
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshinesmilelk authored and xudafeng committed Feb 7, 2025
1 parent 3b80b01 commit fc9ef45
Show file tree
Hide file tree
Showing 65 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions apps/docs/.dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ export default defineConfig({
getPackagesDir(),
'libro-common/es/common/index.js',
),
'@difizen/libro-common/mana-react': path.resolve(
'@difizen/libro-common/react': path.resolve(
getPackagesDir(),
'libro-common/es/mana-react/index.js',
'libro-common/es/react/index.js',
),
'@difizen/libro-common/l10n': path.resolve(
getPackagesDir(),
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/src/workbench/layout/workbench-layout.view.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { singleton, Slot, view } from '@difizen/libro-common/mana-app';
import { BaseView } from '@difizen/libro-common/mana-app';
import { BoxPanel } from '@difizen/libro-common/mana-react';
import { BoxPanel } from '@difizen/libro-common/react';
import { forwardRef } from 'react';

import './index.less';
Expand Down
6 changes: 3 additions & 3 deletions packages/libro-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
"typings": "./es/common/index.js",
"default": "./es/common/index.js"
},
"./mana-react": {
"typings": "./es/mana-react/index.js",
"default": "./es/mana-react/index.js"
"./react": {
"typings": "./es/react/index.js",
"default": "./es/react/index.js"
},
"./l10n": {
"typings": "./es/l10n/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';

import { MenuItem } from '../../mana-core/index.js';
import { useInject } from '../../mana-observable/index.js';
import { Menubar } from '../../mana-react/index.js';
import { Menubar } from '../../react/index.js';

import type { Menu } from './menu';
import type { MenuFactory } from './menu';
Expand Down
2 changes: 1 addition & 1 deletion packages/libro-common/src/mana-app/menu/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {
import { MenuItem } from '../../mana-core/index.js';
import { CommandRegistry, MenuRegistry } from '../../mana-core/index.js';
import { prop } from '../../mana-observable/index.js';
import { Menu as MenuComponent } from '../../mana-react/index.js';
import { Menu as MenuComponent } from '../../react/index.js';
import { inject, transient } from '../../mana-syringe/index.js';

import { MenuItemRender } from './menu-item-render';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { NotificationArgsProps } from '../../mana-react/index.js';
import type { NotificationArgsProps } from '../../react/index.js';
import type { ReactNode } from 'react';

export interface NotificationAction {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { notification } from '../../mana-react/index.js';
import { notification } from '../../react/index.js';
import { v1 } from 'uuid';

import { Disposable } from '../../common/index.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/libro-common/src/mana-app/tree/view/tree-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
ViewInstance,
} from '../../../mana-core/index.js';
import { getOrigin, prop, useInject } from '../../../mana-observable/index.js';
import { Dropdown } from '../../../mana-react/index.js';
import { Dropdown } from '../../../react/index.js';
import { inject, postConstruct, singleton } from '../../../mana-syringe/index.js';
import { LabelProvider } from '../../label';
import { MenuRender } from '../../menu';
Expand Down
2 changes: 1 addition & 1 deletion packages/libro-common/src/mana-app/view/box/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import { ViewInstance } from '../../../mana-core/index.js';
import type { SlotViewOption } from '../../../mana-core/index.js';
import { prop, useInject } from '../../../mana-observable/index.js';
import { BoxPanel } from '../../../mana-react/index.js';
import { BoxPanel } from '../../../react/index.js';
import { inject, transient } from '../../../mana-syringe/index.js';
import React from 'react';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { DefaultSlotView, view, Slot } from '../../../mana-core/index.js';
import { BoxPanel } from '../../../mana-react/index.js';
import { BoxPanel } from '../../../react/index.js';
import { singleton } from '../../../mana-syringe/index.js';
import * as React from 'react';
import './index.less';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { view, ViewManager, ViewOption } from '../../../mana-core/index.js';
import type { TabsProps } from '../../../mana-react/index.js';
import type { TabsProps } from '../../../react/index.js';
import { inject, transient } from '../../../mana-syringe/index.js';
import cls from 'classnames';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ViewRender } from '../../../mana-core/index.js';
import { ViewManager } from '../../../mana-core/index.js';
import { view, ViewOption, ViewContext } from '../../../mana-core/index.js';
import { equals, prop } from '../../../mana-observable/index.js';
import type { TabsProps } from '../../../mana-react/index.js';
import type { TabsProps } from '../../../react/index.js';
import { inject, transient } from '../../../mana-syringe/index.js';
import cls from 'classnames';

Expand Down
4 changes: 2 additions & 2 deletions packages/libro-common/src/mana-app/view/tab/tab-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
import type { View, SlotViewOption } from '../../../mana-core/index.js';
import { useInject } from '../../../mana-observable/index.js';
import { prop } from '../../../mana-observable/index.js';
import { Tabs, Dropdown } from '../../../mana-react/index.js';
import type { TabPaneProps, TabsProps } from '../../../mana-react/index.js';
import { Tabs, Dropdown } from '../../../react/index.js';
import type { TabPaneProps, TabsProps } from '../../../react/index.js';
import { inject, transient } from '../../../mana-syringe/index.js';
import classnames from 'classnames';
import type { ReactNode } from 'react';
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import clsx from 'classnames';
import * as React from 'react';

import { Emitter } from '../../../common/index.js';
import { defaultPrefixCls } from '../../constant';
import { defaultPrefixCls } from '../../constant.js';
import type { IResizeHandleDelegate } from '../../resize/index';
import { ResizeFlexMode } from '../../resize/index';
import { Layout } from '../layout';
import { Layout } from '../layout.js';

import { SplitPanelContext } from './context';
import { Pane } from './pane';
import { SplitPanelContext } from './context.js';
import { Pane } from './pane.js';
import './styles/index.less';

export interface SplitPanelProps {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Menu, MenuContext } from '@difizen/libro-common/mana-react';
import { Menu, MenuContext } from '@difizen/libro-common/react';
import type { Toolbar } from '@difizen/libro-common/mana-app';
import {
CommandRegistry,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SplitPanel } from '@difizen/libro-common/mana-react';
import { SplitPanel } from '@difizen/libro-common/react';
import {
BaseView,
view,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Menu, MenuContext } from '@difizen/libro-common/mana-react';
import { Menu, MenuContext } from '@difizen/libro-common/react';
import type { Toolbar } from '@difizen/libro-common/mana-app';
import { isMacintosh } from '@difizen/libro-common/mana-app';
import {
Expand Down
2 changes: 1 addition & 1 deletion packages/libro-lab/src/layout/container.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BoxPanel } from '@difizen/libro-common/mana-react';
import { BoxPanel } from '@difizen/libro-common/react';
import { singleton, Slot, view } from '@difizen/libro-common/mana-app';
import { BaseView } from '@difizen/libro-common/mana-app';
import { forwardRef } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion packages/libro-lab/src/layout/footer/footer-view.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BoxPanel } from '@difizen/libro-common/mana-react';
import { BoxPanel } from '@difizen/libro-common/react';
import { DefaultSlotView, singleton, Slot, view } from '@difizen/libro-common/mana-app';
import * as React from 'react';
import './index.less';
Expand Down
2 changes: 1 addition & 1 deletion packages/libro-lab/src/layout/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BoxPanel } from '@difizen/libro-common/mana-react';
import { BoxPanel } from '@difizen/libro-common/react';
import {
inject,
singleton,
Expand Down
2 changes: 1 addition & 1 deletion packages/libro-lab/src/layout/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SplitPanel } from '@difizen/libro-common/mana-react';
import { SplitPanel } from '@difizen/libro-common/react';
import { singleton, Slot, useInject, view } from '@difizen/libro-common/mana-app';
import { BaseView } from '@difizen/libro-common/mana-app';
import { forwardRef } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion packages/libro-lab/src/layout/saveable-tab-view.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CloseOutlined } from '@ant-design/icons';
import { Dropdown } from '@difizen/libro-common/mana-react';
import { Dropdown } from '@difizen/libro-common/react';
import { JupyterFileService } from '@difizen/libro-jupyter';
import type { CardTabOption, View } from '@difizen/libro-common/mana-app';
import { ViewManager, ViewOption } from '@difizen/libro-common/mana-app';
Expand Down

0 comments on commit fc9ef45

Please sign in to comment.