@cntrl-site/sdk-nextjs 0.28.1 → 0.29.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.
|
@@ -31,7 +31,8 @@ class RichTextConverter {
|
|
|
31
31
|
const content = text.slice(block.start, block.end);
|
|
32
32
|
const entities = (_a = block.entities.sort((a, b) => a.start - b.start)) !== null && _a !== void 0 ? _a : [];
|
|
33
33
|
if (content.length === 0) {
|
|
34
|
-
|
|
34
|
+
const id = `rt_${richText.id}_br_${blockIndex}`;
|
|
35
|
+
root.push((0, jsx_runtime_1.jsx)("div", { className: id, children: (0, jsx_runtime_1.jsx)("br", {}) }, id));
|
|
35
36
|
layouts.forEach(l => {
|
|
36
37
|
const lhForLayout = currentLineHeight[l.id];
|
|
37
38
|
if (lhForLayout === undefined)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cntrl-site/sdk-nextjs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"description": "SDK for Next.js",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@cntrl-site/color": "^1.0.0",
|
|
25
25
|
"@cntrl-site/effects": "^1.2.0",
|
|
26
|
-
"@cntrl-site/sdk": "^1.
|
|
26
|
+
"@cntrl-site/sdk": "^1.10.0",
|
|
27
27
|
"@types/vimeo__player": "^2.18.0",
|
|
28
28
|
"@vimeo/player": "^2.20.1",
|
|
29
29
|
"html-react-parser": "^3.0.1",
|
|
@@ -59,7 +59,8 @@ export class RichTextConverter {
|
|
|
59
59
|
const content = text.slice(block.start, block.end);
|
|
60
60
|
const entities = block.entities!.sort((a, b) => a.start - b.start) ?? [];
|
|
61
61
|
if (content.length === 0) {
|
|
62
|
-
|
|
62
|
+
const id = `rt_${richText.id}_br_${blockIndex}`;
|
|
63
|
+
root.push(<div key={id} className={id}><br /></div>);
|
|
63
64
|
layouts.forEach(l => {
|
|
64
65
|
const lhForLayout = currentLineHeight[l.id];
|
|
65
66
|
if (lhForLayout === undefined) return;
|
|
@@ -10,8 +10,8 @@ export interface FXCursor {
|
|
|
10
10
|
|
|
11
11
|
interface FxParams {
|
|
12
12
|
imageUrl?: string;
|
|
13
|
-
fragmentShader
|
|
14
|
-
cursor
|
|
13
|
+
fragmentShader: string | null;
|
|
14
|
+
cursor: FXCursor | null;
|
|
15
15
|
// TODO use types from SDk
|
|
16
16
|
controls?: Record<string, number | [number, number]>;
|
|
17
17
|
}
|