@uniformdev/canvas-react 19.207.1-alpha.11 → 19.207.1-alpha.28
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 +9 -3
- package/dist/index.js +9 -3
- package/dist/index.mjs +9 -3
- package/package.json +6 -6
package/dist/index.esm.js
CHANGED
|
@@ -710,10 +710,16 @@ var AssetRichTextNode = ({ node }) => {
|
|
|
710
710
|
if (__asset === void 0) {
|
|
711
711
|
return null;
|
|
712
712
|
}
|
|
713
|
-
if (__asset.type
|
|
714
|
-
return null;
|
|
713
|
+
if (__asset.type === "image") {
|
|
714
|
+
return /* @__PURE__ */ React9.createElement("figure", null, /* @__PURE__ */ React9.createElement("img", { src: __asset.fields.url.value, alt: (_a = __asset.fields.title) == null ? void 0 : _a.value }), ((_b = __asset.fields.description) == null ? void 0 : _b.value) ? /* @__PURE__ */ React9.createElement("figcaption", null, __asset.fields.description.value) : null);
|
|
715
|
+
}
|
|
716
|
+
if (__asset.type === "video") {
|
|
717
|
+
return /* @__PURE__ */ React9.createElement("video", { src: __asset.fields.url.value, controls: true });
|
|
715
718
|
}
|
|
716
|
-
|
|
719
|
+
if (__asset.type === "audio") {
|
|
720
|
+
return /* @__PURE__ */ React9.createElement("audio", { src: __asset.fields.url.value, controls: true });
|
|
721
|
+
}
|
|
722
|
+
return null;
|
|
717
723
|
};
|
|
718
724
|
|
|
719
725
|
// src/components/UniformRichText/nodes/HeadingRichTextNode.tsx
|
package/dist/index.js
CHANGED
|
@@ -734,10 +734,16 @@ var AssetRichTextNode = ({ node }) => {
|
|
|
734
734
|
if (__asset === void 0) {
|
|
735
735
|
return null;
|
|
736
736
|
}
|
|
737
|
-
if (__asset.type
|
|
738
|
-
return null;
|
|
737
|
+
if (__asset.type === "image") {
|
|
738
|
+
return /* @__PURE__ */ import_react11.default.createElement("figure", null, /* @__PURE__ */ import_react11.default.createElement("img", { src: __asset.fields.url.value, alt: (_a = __asset.fields.title) == null ? void 0 : _a.value }), ((_b = __asset.fields.description) == null ? void 0 : _b.value) ? /* @__PURE__ */ import_react11.default.createElement("figcaption", null, __asset.fields.description.value) : null);
|
|
739
|
+
}
|
|
740
|
+
if (__asset.type === "video") {
|
|
741
|
+
return /* @__PURE__ */ import_react11.default.createElement("video", { src: __asset.fields.url.value, controls: true });
|
|
739
742
|
}
|
|
740
|
-
|
|
743
|
+
if (__asset.type === "audio") {
|
|
744
|
+
return /* @__PURE__ */ import_react11.default.createElement("audio", { src: __asset.fields.url.value, controls: true });
|
|
745
|
+
}
|
|
746
|
+
return null;
|
|
741
747
|
};
|
|
742
748
|
|
|
743
749
|
// src/components/UniformRichText/nodes/HeadingRichTextNode.tsx
|
package/dist/index.mjs
CHANGED
|
@@ -710,10 +710,16 @@ var AssetRichTextNode = ({ node }) => {
|
|
|
710
710
|
if (__asset === void 0) {
|
|
711
711
|
return null;
|
|
712
712
|
}
|
|
713
|
-
if (__asset.type
|
|
714
|
-
return null;
|
|
713
|
+
if (__asset.type === "image") {
|
|
714
|
+
return /* @__PURE__ */ React9.createElement("figure", null, /* @__PURE__ */ React9.createElement("img", { src: __asset.fields.url.value, alt: (_a = __asset.fields.title) == null ? void 0 : _a.value }), ((_b = __asset.fields.description) == null ? void 0 : _b.value) ? /* @__PURE__ */ React9.createElement("figcaption", null, __asset.fields.description.value) : null);
|
|
715
|
+
}
|
|
716
|
+
if (__asset.type === "video") {
|
|
717
|
+
return /* @__PURE__ */ React9.createElement("video", { src: __asset.fields.url.value, controls: true });
|
|
715
718
|
}
|
|
716
|
-
|
|
719
|
+
if (__asset.type === "audio") {
|
|
720
|
+
return /* @__PURE__ */ React9.createElement("audio", { src: __asset.fields.url.value, controls: true });
|
|
721
|
+
}
|
|
722
|
+
return null;
|
|
717
723
|
};
|
|
718
724
|
|
|
719
725
|
// src/components/UniformRichText/nodes/HeadingRichTextNode.tsx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas-react",
|
|
3
|
-
"version": "19.207.1-alpha.
|
|
3
|
+
"version": "19.207.1-alpha.28+369def3ba0",
|
|
4
4
|
"description": "React SDK for Uniform Canvas",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"document": "api-extractor run --local"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@uniformdev/canvas": "19.207.1-alpha.
|
|
49
|
-
"@uniformdev/context": "19.207.1-alpha.
|
|
50
|
-
"@uniformdev/context-react": "19.207.1-alpha.
|
|
51
|
-
"@uniformdev/richtext": "19.207.1-alpha.
|
|
48
|
+
"@uniformdev/canvas": "19.207.1-alpha.28+369def3ba0",
|
|
49
|
+
"@uniformdev/context": "19.207.1-alpha.28+369def3ba0",
|
|
50
|
+
"@uniformdev/context-react": "19.207.1-alpha.28+369def3ba0",
|
|
51
|
+
"@uniformdev/richtext": "19.207.1-alpha.28+369def3ba0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"immer": ">= 10",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "369def3ba012b3fc314254d940448b9937e12900"
|
|
71
71
|
}
|