decentraland-ui2 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.
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
3
|
const ContentfulRichText = ({ document }) => {
|
|
4
|
-
|
|
4
|
+
const [content, setContent] = useState(null);
|
|
5
|
+
useEffect(() => {
|
|
6
|
+
import("@contentful/rich-text-react-renderer").then((mod) => {
|
|
7
|
+
setContent(mod.documentToReactComponents(document));
|
|
8
|
+
});
|
|
9
|
+
}, [document]);
|
|
10
|
+
return _jsx(_Fragment, { children: content });
|
|
5
11
|
};
|
|
6
12
|
export { ContentfulRichText };
|
|
7
13
|
//# sourceMappingURL=ContentfulRichText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentfulRichText.js","sourceRoot":"","sources":["../../../src/components/Banner/ContentfulRichText.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ContentfulRichText.js","sourceRoot":"","sources":["../../../src/components/Banner/ContentfulRichText.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAO3C,MAAM,kBAAkB,GAAG,CAAC,EAAE,QAAQ,EAA2B,EAAE,EAAE;IACnE,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAkB,IAAI,CAAC,CAAA;IAE7D,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,CAAC,sCAAsC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;YAC1D,UAAU,CAAC,GAAG,CAAC,yBAAyB,CAAC,QAAQ,CAAC,CAAC,CAAA;QACrD,CAAC,CAAC,CAAA;IACJ,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAA;IAEd,OAAO,4BAAG,OAAO,GAAI,CAAA;AACvB,CAAC,CAAA;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "decentraland-ui2",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Decentraland's UI components and styles",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -116,5 +116,5 @@
|
|
|
116
116
|
"url": "https://github.com/decentraland/ui2/issues"
|
|
117
117
|
},
|
|
118
118
|
"homepage": "https://github.com/decentraland/ui2#readme",
|
|
119
|
-
"commit": "
|
|
119
|
+
"commit": "4fb7afab543828bd527ef46b7cfd0eee56bcc7d0"
|
|
120
120
|
}
|