@haklex/rich-editor-ui 0.4.0 → 0.5.0
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/code-block/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAQ1C,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/code-block/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAQ1C,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,WAAkB,EAClB,IAAI,EACJ,QAAQ,EACR,cAAqB,EACrB,eAAuB,GACxB,EAAE,cAAc,GAAG,YAAY,CA+D/B"}
|
package/dist/index.mjs
CHANGED
|
@@ -639,12 +639,12 @@ function CodeBlock({ className, collapsible = true, code, language, showCopyButt
|
|
|
639
639
|
const fallbackLines = useMemo(() => code.split("\n"), [code]);
|
|
640
640
|
const linedClassName = [showLineNumbers && "_1gq8hf99", showLineNumbers && "_1gq8hf9a"].filter(Boolean).join(" ");
|
|
641
641
|
return /* @__PURE__ */ jsx(CodeBlockCard, {
|
|
642
|
+
static: true,
|
|
642
643
|
className,
|
|
643
644
|
code,
|
|
644
645
|
collapsible,
|
|
645
646
|
language,
|
|
646
647
|
showCopyButton,
|
|
647
|
-
static: true,
|
|
648
648
|
children: html ? /* @__PURE__ */ jsx("div", {
|
|
649
649
|
className: linedClassName,
|
|
650
650
|
dangerouslySetInnerHTML: { __html: html }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@haklex/rich-editor-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "UI components for haklex rich editor",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@base-ui/react": "^1.4.1",
|
|
25
|
-
"@haklex/rich-style-token": "0.
|
|
25
|
+
"@haklex/rich-style-token": "0.5.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/react": "^19.2.14",
|