@soroush.tech/markdown 1.2.0 → 1.2.1

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/dist/Control.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_applyAction = require("./applyAction-BDkgYhOd.cjs");
2
+ const require_applyAction = require("./applyAction-eBwIRQNK.cjs");
3
3
  const require_MarkdownContext = require("./MarkdownContext.cjs");
4
4
  let react = require("react");
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
package/dist/Control.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as applyAction } from "./applyAction-BGWMbUYT.mjs";
1
+ import { t as applyAction } from "./applyAction-CegmXrxL.mjs";
2
2
  import { MarkdownContext } from "./MarkdownContext.mjs";
3
3
  import { useMemo, useRef } from "react";
4
4
  import { jsx } from "react/jsx-runtime";
package/dist/Editor.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_applyAction = require("./applyAction-BDkgYhOd.cjs");
2
+ const require_applyAction = require("./applyAction-eBwIRQNK.cjs");
3
3
  const require_MarkdownContext = require("./MarkdownContext.cjs");
4
4
  let react = require("react");
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
package/dist/Editor.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as applyAction } from "./applyAction-BGWMbUYT.mjs";
1
+ import { t as applyAction } from "./applyAction-CegmXrxL.mjs";
2
2
  import { MarkdownContext } from "./MarkdownContext.mjs";
3
3
  import { useContext, useId, useLayoutEffect, useRef } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -79,10 +79,12 @@ function fenceEndAfter(value, pos) {
79
79
  let openStart = -1;
80
80
  for (const line of value.split("\n")) {
81
81
  const lineEnd = offset + line.length;
82
- if (line.startsWith("```")) if (openStart === -1) openStart = offset;
83
- else {
84
- if (pos >= openStart && pos <= lineEnd) return lineEnd;
85
- openStart = -1;
82
+ if (line.startsWith("```")) {
83
+ if (openStart === -1) openStart = offset;
84
+ else {
85
+ if (pos >= openStart && pos <= lineEnd) return lineEnd;
86
+ openStart = -1;
87
+ }
86
88
  }
87
89
  offset = lineEnd + 1;
88
90
  }
@@ -79,10 +79,12 @@ function fenceEndAfter(value, pos) {
79
79
  let openStart = -1;
80
80
  for (const line of value.split("\n")) {
81
81
  const lineEnd = offset + line.length;
82
- if (line.startsWith("```")) if (openStart === -1) openStart = offset;
83
- else {
84
- if (pos >= openStart && pos <= lineEnd) return lineEnd;
85
- openStart = -1;
82
+ if (line.startsWith("```")) {
83
+ if (openStart === -1) openStart = offset;
84
+ else {
85
+ if (pos >= openStart && pos <= lineEnd) return lineEnd;
86
+ openStart = -1;
87
+ }
86
88
  }
87
89
  offset = lineEnd + 1;
88
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soroush.tech/markdown",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Headless, composable markdown editor + renderer for @soroush.tech/design-system — Control, Toolbar, Editor, and Preview built on react-markdown, remark-gfm, and rehype-highlight.",
5
5
  "keywords": [
6
6
  "markdown",
@@ -67,36 +67,31 @@
67
67
  "peerDependencies": {
68
68
  "react": "^19.2.8",
69
69
  "react-dom": "^19.2.8",
70
- "@soroush.tech/design-system": "^1.2.0"
70
+ "@soroush.tech/design-system": "^1.3.2"
71
71
  },
72
72
  "devDependencies": {
73
- "@storybook/react-vite": "^10.5.6",
74
- "@testing-library/jest-dom": "^7.0.0",
73
+ "@storybook/react-vite": "^10.5.8",
74
+ "@testing-library/jest-dom": "^7.0.1",
75
75
  "@testing-library/react": "^16.3.2",
76
76
  "@types/node": "^26.1.2",
77
77
  "@types/react": "^19.2.18",
78
78
  "@types/react-dom": "^19.2.4",
79
79
  "@vitest/coverage-v8": "^4.1.10",
80
- "eslint": "^10.8.0",
81
- "eslint-plugin-react": "^7.37.5",
82
- "eslint-plugin-react-hooks": "^7.1.1",
83
- "eslint-plugin-react-refresh": "^0.5.3",
84
- "eslint-plugin-storybook": "^10.5.6",
85
- "globals": "^17.9.0",
86
80
  "jsdom": "^29.1.1",
81
+ "oxlint": "^1.78.0",
87
82
  "react": "^19.2.8",
88
83
  "react-dom": "^19.2.8",
89
- "storybook": "^10.5.6",
84
+ "storybook": "^10.5.8",
90
85
  "tsdown": "^0.22.14",
91
- "typescript": "~6.0.3",
86
+ "typescript": "~7.0.2",
92
87
  "vitest": "^4.1.10",
93
- "@soroush.tech/design-system": "1.2.0",
94
88
  "@soroush.tech/eslint-config": "0.0.0",
95
- "@soroush.tech/hooks": "0.1.0"
89
+ "@soroush.tech/hooks": "0.1.0",
90
+ "@soroush.tech/design-system": "1.3.2"
96
91
  },
97
92
  "scripts": {
98
93
  "build": "tsdown",
99
- "lint": "eslint . --max-warnings 0",
94
+ "lint": "oxlint --deny-warnings",
100
95
  "typecheck": "tsc --noEmit",
101
96
  "test": "vitest run",
102
97
  "test:coverage": "vitest run --coverage",