oasis-editor 0.0.32 → 0.0.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,7 @@
1
1
  import { JSX } from 'solid-js';
2
2
  import { EditorState } from './model.js';
3
- import { Editor } from './Editor.js';
4
3
  import { CommandRef } from './commands/CommandRef.js';
5
- import { RibbonRow, RibbonSize, RibbonTabId } from '../ui/components/Toolbar/schema/items.js';
4
+ import { RibbonRow, RibbonSize, RibbonTabId } from './pluginUiTypes.js';
6
5
 
7
6
  export type Unsubscribe = () => void;
8
7
  export interface OasisCommandContext {
@@ -119,4 +118,3 @@ export interface OasisPlugin {
119
118
  destroy?: (editor: OasisEditor) => void | Promise<void>;
120
119
  install?: (editor: OasisEditor) => void | Unsubscribe;
121
120
  }
122
- export type OasisEditorRuntime = Editor;
@@ -0,0 +1,4 @@
1
+ export declare const RIBBON_TABS: readonly ["file", "home", "insert", "draw", "layout", "references", "collaboration", "protection", "view", "plugins", "ai"];
2
+ export type RibbonTabId = (typeof RIBBON_TABS)[number];
3
+ export type RibbonRow = 1 | 2;
4
+ export type RibbonSize = "normal" | "large";
@@ -3,11 +3,9 @@ import { CommandBus } from '../../../../core/commands/CommandBus.js';
3
3
  import { CommandRef } from '../../../../core/commands/CommandRef.js';
4
4
  import { TranslationKey } from '../../../../i18n/index.js';
5
5
  import { ColorPalette } from './palette.js';
6
+ import { RibbonTabId, RibbonRow, RibbonSize } from '../../../../core/pluginUiTypes.js';
6
7
 
7
- export declare const RIBBON_TABS: readonly ["file", "home", "insert", "draw", "layout", "references", "collaboration", "protection", "view", "plugins", "ai"];
8
- export type RibbonTabId = (typeof RIBBON_TABS)[number];
9
- export type RibbonRow = 1 | 2;
10
- export type RibbonSize = "normal" | "large";
8
+ export { RIBBON_TABS, type RibbonTabId, type RibbonRow, type RibbonSize, } from '../../../../core/pluginUiTypes.js';
11
9
  /** Reactive snapshot of a command's state, as consumed by toolbar items. */
12
10
  export interface ToolbarCommandState {
13
11
  isEnabled: boolean;
@@ -147,4 +145,3 @@ export interface CustomItem extends ToolbarItemBase {
147
145
  }
148
146
  export type ToolbarItem = ButtonItem | ToggleItem | SplitItem | MenuItem | SelectItem | ColorPickerItem | GridPickerItem | SeparatorItem | GroupItem | CustomItem;
149
147
  export type ToolbarItemType = ToolbarItem["type"];
150
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.32",
3
+ "version": "0.0.33",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -58,6 +58,7 @@
58
58
  "build:all": "npm run wasm:build && npm run build",
59
59
  "test": "vitest run",
60
60
  "test:word-parity": "vitest run --config vitest.word-parity.config.js",
61
+ "check:imports": "node ./scripts/check-import-graph.mjs",
61
62
  "lint": "eslint src --ext .ts",
62
63
  "format": "prettier --write \"src/**/*.ts\""
63
64
  },