@cntrl-site/sdk-nextjs 0.24.0 → 0.25.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.
|
@@ -44,8 +44,6 @@ const ImageItem = ({ item, sectionId, onResize }) => {
|
|
|
44
44
|
return acc;
|
|
45
45
|
}, {});
|
|
46
46
|
const fullShaderCode = `${baseVariables}\n${controlsVariables}\n${fragmentShader}`;
|
|
47
|
-
console.log('fullShaderCode', fullShaderCode);
|
|
48
|
-
console.log('controlValues', controlValues);
|
|
49
47
|
(0, useImageFx_1.useImageFx)(fxCanvas.current, hasGLEffect !== null && hasGLEffect !== void 0 ? hasGLEffect : false, {
|
|
50
48
|
imageUrl: url,
|
|
51
49
|
fragmentShader: fullShaderCode,
|
|
@@ -51,7 +51,6 @@ const RichTextItem = ({ item, sectionId, onResize }) => {
|
|
|
51
51
|
font-family: ${(0, getFontFamilyValue_1.getFontFamilyValue)(layoutParams.typeFace)};
|
|
52
52
|
font-weight: ${layoutParams.fontWeight};
|
|
53
53
|
font-style: ${layoutParams.fontStyle ? layoutParams.fontStyle : 'normal'};
|
|
54
|
-
text-decoration: ${layoutParams.textDecoration};
|
|
55
54
|
vertical-align: ${layoutParams.verticalAlign};
|
|
56
55
|
font-variant: ${layoutParams.fontVariant};
|
|
57
56
|
color: ${color.toCss()};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cntrl-site/sdk-nextjs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.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.0.5",
|
|
26
|
-
"@cntrl-site/sdk": "^1.
|
|
26
|
+
"@cntrl-site/sdk": "^1.8.0",
|
|
27
27
|
"@types/vimeo__player": "^2.18.0",
|
|
28
28
|
"@vimeo/player": "^2.20.1",
|
|
29
29
|
"html-react-parser": "^3.0.1",
|
|
@@ -39,8 +39,6 @@ export const ImageItem: FC<ItemProps<TImageItem>> = ({ item, sectionId, onResize
|
|
|
39
39
|
return acc;
|
|
40
40
|
}, {});
|
|
41
41
|
const fullShaderCode = `${baseVariables}\n${controlsVariables}\n${fragmentShader}`;
|
|
42
|
-
console.log('fullShaderCode', fullShaderCode);
|
|
43
|
-
console.log('controlValues', controlValues);
|
|
44
42
|
useImageFx(fxCanvas.current, hasGLEffect ?? false, {
|
|
45
43
|
imageUrl: url,
|
|
46
44
|
fragmentShader: fullShaderCode,
|
|
@@ -59,7 +59,6 @@ export const RichTextItem: FC<ItemProps<TRichTextItem>> = ({ item, sectionId, on
|
|
|
59
59
|
font-family: ${getFontFamilyValue(layoutParams.typeFace)};
|
|
60
60
|
font-weight: ${layoutParams.fontWeight};
|
|
61
61
|
font-style: ${layoutParams.fontStyle ? layoutParams.fontStyle : 'normal'};
|
|
62
|
-
text-decoration: ${layoutParams.textDecoration};
|
|
63
62
|
vertical-align: ${layoutParams.verticalAlign};
|
|
64
63
|
font-variant: ${layoutParams.fontVariant};
|
|
65
64
|
color: ${color.toCss()};
|