@uniformdev/canvas-react 19.17.0 → 19.20.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.
- package/dist/index.esm.js +5 -1
- package/dist/index.js +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +6 -6
package/dist/index.esm.js
CHANGED
|
@@ -586,7 +586,7 @@ var LinkRichTextNode = ({ children, node }) => {
|
|
|
586
586
|
import React10 from "react";
|
|
587
587
|
var ListItemRichTextNode = ({ children, node }) => {
|
|
588
588
|
const { value } = node;
|
|
589
|
-
return /* @__PURE__ */ React10.createElement("li", { value: Number.isFinite(value) && value > 0 ? value
|
|
589
|
+
return /* @__PURE__ */ React10.createElement("li", { value: Number.isFinite(value) && value > 0 ? value : void 0 }, children);
|
|
590
590
|
};
|
|
591
591
|
|
|
592
592
|
// src/components/UniformRichText/nodes/ListRichTextNode.tsx
|
|
@@ -650,6 +650,10 @@ var rendererMap = /* @__PURE__ */ new Map([
|
|
|
650
650
|
["listitem", ListItemRichTextNode],
|
|
651
651
|
["paragraph", ParagraphRichTextNode],
|
|
652
652
|
["quote", ({ children }) => /* @__PURE__ */ React15.createElement("blockquote", null, children)],
|
|
653
|
+
[
|
|
654
|
+
"code",
|
|
655
|
+
({ children }) => /* @__PURE__ */ React15.createElement("pre", null, /* @__PURE__ */ React15.createElement("code", null, children))
|
|
656
|
+
],
|
|
653
657
|
["root", ({ children }) => /* @__PURE__ */ React15.createElement(React15.Fragment, null, children)],
|
|
654
658
|
["text", TextRichTextNode],
|
|
655
659
|
["tab", TabRichTextNode]
|
package/dist/index.js
CHANGED
|
@@ -617,7 +617,7 @@ var LinkRichTextNode = ({ children, node }) => {
|
|
|
617
617
|
var import_react10 = __toESM(require("react"));
|
|
618
618
|
var ListItemRichTextNode = ({ children, node }) => {
|
|
619
619
|
const { value } = node;
|
|
620
|
-
return /* @__PURE__ */ import_react10.default.createElement("li", { value: Number.isFinite(value) && value > 0 ? value
|
|
620
|
+
return /* @__PURE__ */ import_react10.default.createElement("li", { value: Number.isFinite(value) && value > 0 ? value : void 0 }, children);
|
|
621
621
|
};
|
|
622
622
|
|
|
623
623
|
// src/components/UniformRichText/nodes/ListRichTextNode.tsx
|
|
@@ -681,6 +681,10 @@ var rendererMap = /* @__PURE__ */ new Map([
|
|
|
681
681
|
["listitem", ListItemRichTextNode],
|
|
682
682
|
["paragraph", ParagraphRichTextNode],
|
|
683
683
|
["quote", ({ children }) => /* @__PURE__ */ import_react15.default.createElement("blockquote", null, children)],
|
|
684
|
+
[
|
|
685
|
+
"code",
|
|
686
|
+
({ children }) => /* @__PURE__ */ import_react15.default.createElement("pre", null, /* @__PURE__ */ import_react15.default.createElement("code", null, children))
|
|
687
|
+
],
|
|
684
688
|
["root", ({ children }) => /* @__PURE__ */ import_react15.default.createElement(import_react15.default.Fragment, null, children)],
|
|
685
689
|
["text", TextRichTextNode],
|
|
686
690
|
["tab", TabRichTextNode]
|
package/dist/index.mjs
CHANGED
|
@@ -586,7 +586,7 @@ var LinkRichTextNode = ({ children, node }) => {
|
|
|
586
586
|
import React10 from "react";
|
|
587
587
|
var ListItemRichTextNode = ({ children, node }) => {
|
|
588
588
|
const { value } = node;
|
|
589
|
-
return /* @__PURE__ */ React10.createElement("li", { value: Number.isFinite(value) && value > 0 ? value
|
|
589
|
+
return /* @__PURE__ */ React10.createElement("li", { value: Number.isFinite(value) && value > 0 ? value : void 0 }, children);
|
|
590
590
|
};
|
|
591
591
|
|
|
592
592
|
// src/components/UniformRichText/nodes/ListRichTextNode.tsx
|
|
@@ -650,6 +650,10 @@ var rendererMap = /* @__PURE__ */ new Map([
|
|
|
650
650
|
["listitem", ListItemRichTextNode],
|
|
651
651
|
["paragraph", ParagraphRichTextNode],
|
|
652
652
|
["quote", ({ children }) => /* @__PURE__ */ React15.createElement("blockquote", null, children)],
|
|
653
|
+
[
|
|
654
|
+
"code",
|
|
655
|
+
({ children }) => /* @__PURE__ */ React15.createElement("pre", null, /* @__PURE__ */ React15.createElement("code", null, children))
|
|
656
|
+
],
|
|
653
657
|
["root", ({ children }) => /* @__PURE__ */ React15.createElement(React15.Fragment, null, children)],
|
|
654
658
|
["text", TextRichTextNode],
|
|
655
659
|
["tab", TabRichTextNode]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-react",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.20.0",
|
|
4
4
|
"description": "React SDK for Uniform Canvas",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"document": "api-extractor run --local"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@uniformdev/canvas": "19.
|
|
28
|
-
"@uniformdev/context": "19.
|
|
29
|
-
"@uniformdev/context-react": "19.
|
|
30
|
-
"@uniformdev/richtext": "19.
|
|
27
|
+
"@uniformdev/canvas": "19.20.0",
|
|
28
|
+
"@uniformdev/context": "19.20.0",
|
|
29
|
+
"@uniformdev/context-react": "19.20.0",
|
|
30
|
+
"@uniformdev/richtext": "19.20.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"react": ">= 16 || 17 || 18",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "eb731fec3a9f35b9cc6d218e2a77861ccf00441a"
|
|
48
48
|
}
|