@owomark/react 0.1.3 → 0.1.4

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.
package/README.md CHANGED
@@ -52,7 +52,7 @@ function App() {
52
52
  | `coreRef` | `Ref<OwoMarkCore \| null>` | — | Direct access to the underlying OwoMarkCore instance |
53
53
  | `controller` | `OwoMarkSharedStateController` | — | Auto-connects editor to shared state (recommended for split editor) |
54
54
  | `indentMode` | `'auto' \| '2' \| '4'` | `'auto'` | Tab indent width |
55
- | `config` | `OwoMarkEditorConfig` | — | Unified editor config (`indentMode`, `enableSideAnnotation`, `enableMath`, `theme`) |
55
+ | `config` | `OwoMarkEditorConfig` | — | Unified editor config (`indentMode`, `enableSideAnnotation`, `enableMath`) |
56
56
  | `ariaLabel` | `string` | — | Accessibility label |
57
57
 
58
58
  When `config` is provided, it becomes the unified configuration surface for editor behavior:
package/dist/index.d.ts CHANGED
@@ -19,8 +19,6 @@ type OwoMarkEditorConfig = {
19
19
  markdownSandbox?: {
20
20
  outerFenceTicks?: number;
21
21
  };
22
- /** Color theme. Default: 'light'. */
23
- theme?: 'light' | 'dark';
24
22
  };
25
23
  declare const DEFAULT_EDITOR_CONFIG: Required<OwoMarkEditorConfig>;
26
24
  declare function resolveEditorConfig(config?: OwoMarkEditorConfig): Required<OwoMarkEditorConfig>;
package/dist/index.js CHANGED
@@ -414,8 +414,7 @@ var DEFAULT_EDITOR_CONFIG = {
414
414
  enableMarkdownSandbox: true,
415
415
  markdownSandbox: {
416
416
  outerFenceTicks: 4
417
- },
418
- theme: "light"
417
+ }
419
418
  };
420
419
  function resolveEditorConfig(config) {
421
420
  return {
@@ -462,7 +461,7 @@ var OwoMarkEditor = forwardRef(
462
461
  } = props;
463
462
  const resolved = resolveEditorConfig(configProp);
464
463
  const indentMode = configProp ? resolved.indentMode : indentModeProp;
465
- const theme = configProp ? resolved.theme : themeProp;
464
+ const theme = themeProp;
466
465
  const enableSideAnnotation = resolved.enableSideAnnotation;
467
466
  const enableMath = resolved.enableMath;
468
467
  const isControlled = value !== void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owomark/react",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "React bindings and components for the OwoMark editor stack.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -33,8 +33,8 @@
33
33
  "access": "public"
34
34
  },
35
35
  "dependencies": {
36
- "@owomark/core": "^0.1.2",
37
- "@owomark/view": "^0.1.2"
36
+ "@owomark/core": "^0.1.4",
37
+ "@owomark/view": "^0.1.4"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": ">=18",