oasis-editor 0.0.235 → 0.0.237

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.
@@ -11,8 +11,8 @@ export interface EditorChangeBroadcastDeps {
11
11
  /**
12
12
  * Sets up the reactive effect that mirrors document/selection changes out to the
13
13
  * host: records the canvas-debug selection, then (when not mid-import) notifies
14
- * `onStateChange` and emits the client `change`/`documentChange`/`selectionChange`
15
- * events. Must be called synchronously within the component owner so the effect
14
+ * `onStateChange` and emits document events only for immutable document changes,
15
+ * with selection events tracked independently. Must be called within the owner so the effect
16
16
  * is tracked. Extracted from `OasisEditorApp` (S1).
17
17
  */
18
18
  export declare function createEditorChangeBroadcast(deps: EditorChangeBroadcastDeps): void;
@@ -7,6 +7,7 @@ export interface ColorGridsProps {
7
7
  /** Lowercased hex of the currently applied colour, for the active ring. */
8
8
  activeColor: string;
9
9
  testId: string;
10
+ disabled?: boolean;
10
11
  onPreview: (color: string | null) => void;
11
12
  onPick: (color: string) => void;
12
13
  }
@@ -7,6 +7,8 @@ export interface ColorPickerProps {
7
7
  value: string | null | undefined;
8
8
  defaultValue: string;
9
9
  lastValue: string;
10
+ disabled?: boolean;
11
+ onUnavailableFocus?: () => void;
10
12
  tooltip: string;
11
13
  testId: string;
12
14
  label?: string;
@@ -10,6 +10,10 @@ export interface PopoverTriggerApi {
10
10
  export interface PopoverProps {
11
11
  open: boolean;
12
12
  onOpenChange: (open: boolean) => void;
13
+ /** Revoking availability closes an open panel and prevents reopening it. */
14
+ disabled?: boolean;
15
+ /** Restore focus when revocation removes the currently focused panel. */
16
+ onUnavailableFocus?: () => void;
13
17
  /** Renders the trigger; must attach `api.ref` to the positioning anchor. */
14
18
  trigger: (api: PopoverTriggerApi) => JSX.Element;
15
19
  children: JSX.Element;
@@ -19,6 +19,7 @@ export interface SplitButtonProps {
19
19
  menuTestId?: string;
20
20
  menuAriaLabel?: string;
21
21
  menuDisabled?: boolean;
22
+ onUnavailableFocus?: () => void;
22
23
  /** Popover panel. */
23
24
  panelClass?: string;
24
25
  panelRole?: PanelRole;
@@ -0,0 +1,2 @@
1
+ import { Signal } from 'solid-js';
2
+ export declare function toolbarChoice(owner: object, key: string, initial: string): Signal<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis-editor",
3
- "version": "0.0.235",
3
+ "version": "0.0.237",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -65,6 +65,8 @@
65
65
  "test:word-parity": "vitest run --config vitest.word-parity.config.js",
66
66
  "audit:ribbon": "node scripts/audit-ribbon-parity.mjs --check",
67
67
  "audit:ribbon:write": "node scripts/audit-ribbon-parity.mjs --write",
68
+ "audit:ribbon:wordcraft": "node scripts/snapshot-wordcraft-catalog.mjs --check",
69
+ "audit:ribbon:wordcraft:write": "node scripts/snapshot-wordcraft-catalog.mjs --write",
68
70
  "check:imports": "node ./scripts/check-import-graph.mjs",
69
71
  "check:native-ui": "node ./scripts/check-native-ui-elements.mjs",
70
72
  "typecheck": "tsc --noEmit",
@@ -81,7 +83,8 @@
81
83
  "test:ribbon:clipboard": "node scripts/verify-ribbon-clipboard.mjs",
82
84
  "test:ribbon:painter": "node scripts/verify-ribbon-painter.mjs",
83
85
  "test:ribbon:inherited": "node scripts/verify-ribbon-inherited-formatting.mjs",
84
- "test:ribbon:font-values": "node scripts/verify-ribbon-font-values.mjs"
86
+ "test:ribbon:font-values": "node scripts/verify-ribbon-font-values.mjs",
87
+ "test:ribbon:colors-styles": "node scripts/verify-ribbon-colors-styles.mjs"
85
88
  },
86
89
  "devDependencies": {
87
90
  "@eslint/js": "^10.0.1",