@owomark/react 0.1.7 → 0.1.9
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/.build-manifest.json +6 -6
- package/dist/index.js +8 -5
- package/dist/mdx.worker.js +1 -1
- package/package.json +4 -4
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"packageName": "@owomark/react",
|
|
4
4
|
"packagePath": "owomark/packages/owomark-react",
|
|
5
|
-
"packageFingerprint": "
|
|
6
|
-
"workspaceFingerprint": "
|
|
7
|
-
"builtAt": "2026-04-
|
|
5
|
+
"packageFingerprint": "0ead3e989b2c04f0346ce286249e9b61f84932b6c9cdced41f6a876baf34a196",
|
|
6
|
+
"workspaceFingerprint": "947c542dce3fedf4a242f46f580a35ff336c5a64ac6448d24339650ad9dac6a1",
|
|
7
|
+
"builtAt": "2026-04-23T10:30:21.564Z",
|
|
8
8
|
"builderVersion": "2026-04-22-industrialization-v1",
|
|
9
9
|
"inputFiles": [
|
|
10
10
|
"owomark/package.json",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"dist/mdx.worker.js"
|
|
52
52
|
],
|
|
53
53
|
"localDependencyFingerprints": {
|
|
54
|
-
"@owomark/core": "
|
|
55
|
-
"@owomark/processor": "
|
|
56
|
-
"@owomark/view": "
|
|
54
|
+
"@owomark/core": "8db4cbc05bde390fdc26e52f8d57f3f0fd5bfbf27af1ef9991bf015a3f7b5f69",
|
|
55
|
+
"@owomark/processor": "7da289c40f30c980810832219951ddd7623f621d0defd2f6eb3fa8e03d20f211",
|
|
56
|
+
"@owomark/view": "d8f4b1d986a0675fda2192c0d468451889972322aed165be9fc65f4565475ef6"
|
|
57
57
|
}
|
|
58
58
|
}
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import { getThemeClassName } from "@owomark/view";
|
|
|
10
10
|
|
|
11
11
|
// src/editor/EditorBlock.tsx
|
|
12
12
|
import { memo as memo3, useMemo } from "react";
|
|
13
|
-
import { BLOCK_TYPE_TO_CLASS, BQ_STEP, buildBlockquoteBarsBoxShadow } from "@owomark/core/browser";
|
|
13
|
+
import { BLOCK_TYPE_TO_CLASS, BQ_STEP, buildBlockquoteBarsBoxShadow, getBlockquoteDepthFromAncestry } from "@owomark/core/browser";
|
|
14
14
|
|
|
15
15
|
// src/editor/EditorDecorator.tsx
|
|
16
16
|
import { memo as memo2 } from "react";
|
|
@@ -46,11 +46,14 @@ function buildBlockquoteBarsStyle(depth) {
|
|
|
46
46
|
}
|
|
47
47
|
var EditorBlock = memo3(
|
|
48
48
|
function EditorBlock2({ block, blockIndex }) {
|
|
49
|
-
const
|
|
49
|
+
const baseClass = BLOCK_TYPE_TO_CLASS[block.type] || "owo-block-paragraph";
|
|
50
50
|
const headingLevel = block.type === "heading" ? block.headingLevel : void 0;
|
|
51
|
+
const ancestryBqDepth = block.type !== "blockquote" ? getBlockquoteDepthFromAncestry(block.ancestry) : 0;
|
|
52
|
+
const bqDepth = block.type === "blockquote" ? block.depth : ancestryBqDepth;
|
|
53
|
+
const className = ancestryBqDepth > 0 ? `${baseClass} owo-block-blockquote` : baseClass;
|
|
51
54
|
const bqStyle = useMemo(
|
|
52
|
-
() =>
|
|
53
|
-
[
|
|
55
|
+
() => bqDepth > 0 ? buildBlockquoteBarsStyle(bqDepth) : void 0,
|
|
56
|
+
[bqDepth]
|
|
54
57
|
);
|
|
55
58
|
const hasContent = block.decorators.length > 0 && block.decorators.some((d) => d.leaves.some((l) => l.text.length > 0));
|
|
56
59
|
return /* @__PURE__ */ jsx3(
|
|
@@ -1061,7 +1064,7 @@ async function compileOnMainThread(markdown, options, inspection) {
|
|
|
1061
1064
|
extraRemarkDescriptors: options.extraRemarkDescriptors,
|
|
1062
1065
|
extraRemarkPlugins: options.extraRemarkPlugins
|
|
1063
1066
|
});
|
|
1064
|
-
const { remarkPlugins, rehypePlugins } = getOwoMarkPlugins({
|
|
1067
|
+
const { remarkPlugins, rehypePlugins } = await getOwoMarkPlugins({
|
|
1065
1068
|
mode: "production",
|
|
1066
1069
|
enableMath: options.enableMath,
|
|
1067
1070
|
enableSideAnnotation: options.enableSideAnnotation,
|
package/dist/mdx.worker.js
CHANGED
|
@@ -55,7 +55,7 @@ async function handleCompile(data) {
|
|
|
55
55
|
cancelledIds.delete(id);
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
|
-
const { remarkPlugins, rehypePlugins } = getOwoMarkPlugins({
|
|
58
|
+
const { remarkPlugins, rehypePlugins } = await getOwoMarkPlugins({
|
|
59
59
|
mode: "production",
|
|
60
60
|
enableMath: options.enableMath,
|
|
61
61
|
enableSideAnnotation: options.enableSideAnnotation,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owomark/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "React bindings and components for the OwoMark editor stack.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@mdx-js/mdx": "^3.0.0",
|
|
37
|
-
"@owomark/core": "^0.1.
|
|
38
|
-
"@owomark/processor": "^0.1.
|
|
39
|
-
"@owomark/view": "^0.1.
|
|
37
|
+
"@owomark/core": "^0.1.8",
|
|
38
|
+
"@owomark/processor": "^0.1.8",
|
|
39
|
+
"@owomark/view": "^0.1.8",
|
|
40
40
|
"shiki": "^3.23.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|