@se-studio/core-ui 1.0.71 → 1.0.72
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/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CmsEmbeddedContent.d.ts","sourceRoot":"","sources":["../../src/components/CmsEmbeddedContent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CmsEmbeddedContent.d.ts","sourceRoot":"","sources":["../../src/components/CmsEmbeddedContent.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAyB,KAAK,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AACzF,OAAO,EAAwB,KAAK,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAEtF,OAAO,EAEL,KAAK,iCAAiC,EACvC,MAAM,wBAAwB,CAAC;AAEhC,KAAK,uBAAuB,GACxB,yBAAyB,GACzB,0BAA0B,GAC1B,iCAAiC,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,uBAwEhC,CAAC"}
|
|
@@ -19,8 +19,13 @@ export const CmsEmbeddedContent = ({ information, ...props }) => {
|
|
|
19
19
|
case 'External component':
|
|
20
20
|
result = (_jsx(CmsEmbeddedExternalComponent, { information: information, ...props }));
|
|
21
21
|
break;
|
|
22
|
+
case 'Visual': {
|
|
23
|
+
const VisualRenderer = props.rendererConfig.visualComponentRenderer;
|
|
24
|
+
result = (_jsx("div", { className: props.positionClassName, children: _jsx(VisualRenderer, { information: information, contentContext: props.contentContext, rendererConfig: props.rendererConfig, embedded: true }) }));
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
22
27
|
default:
|
|
23
|
-
result = !props.rendererConfig.buildInformation.isProduction ? (_jsx(ContentError, { error: new Error(
|
|
28
|
+
result = !props.rendererConfig.buildInformation.isProduction ? (_jsx(ContentError, { error: new Error(`Unknown content type: ${information.type}`), content: information, show: !props.rendererConfig.buildInformation.isProduction })) : null;
|
|
24
29
|
}
|
|
25
30
|
return result;
|
|
26
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CmsEmbeddedContent.js","sourceRoot":"","sources":["../../src/components/CmsEmbeddedContent.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"CmsEmbeddedContent.js","sourceRoot":"","sources":["../../src/components/CmsEmbeddedContent.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,qBAAqB,EAAmC,MAAM,iBAAiB,CAAC;AACzF,OAAO,EAAE,oBAAoB,EAAkC,MAAM,gBAAgB,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EACL,4BAA4B,GAE7B,MAAM,wBAAwB,CAAC;AAOhC;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA4B,CAAC,EAAE,WAAW,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IACvF,IAAI,CAAC;QACH,IAAI,MAAuB,CAAC;QAC5B,QAAQ,WAAW,CAAC,IAAI,EAAE,CAAC;YACzB,KAAK,WAAW;gBACd,MAAM,GAAG,CACP,KAAC,oBAAoB,IACnB,WAAW,EAAE,WAAyD,KAClE,KAAK,GACT,CACH,CAAC;gBACF,MAAM;YAER,KAAK,YAAY;gBACf,MAAM,GAAG,CACP,KAAC,qBAAqB,IACpB,WAAW,EAAE,WAA2D,KACpE,KAAK,GACT,CACH,CAAC;gBACF,MAAM;YAER,KAAK,oBAAoB;gBACvB,MAAM,GAAG,CACP,KAAC,4BAA4B,IAC3B,WAAW,EAAE,WAAyE,KAClF,KAAK,GACT,CACH,CAAC;gBACF,MAAM;YAER,KAAK,QAAQ,CAAC,CAAC,CAAC;gBACd,MAAM,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC,uBAAuB,CAAC;gBACpE,MAAM,GAAG,CACP,cAAK,SAAS,EAAE,KAAK,CAAC,iBAAiB,YACrC,KAAC,cAAc,IACb,WAAW,EAAE,WAAsB,EACnC,cAAc,EAAE,KAAK,CAAC,cAAc,EACpC,cAAc,EAAE,KAAK,CAAC,cAAc,EACpC,QAAQ,EAAE,IAAI,GACd,GACE,CACP,CAAC;gBACF,MAAM;YACR,CAAC;YAED;gBACE,MAAM,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC,CAAC,CAC7D,KAAC,YAAY,IACX,KAAK,EAAE,IAAI,KAAK,CAAC,yBAAyB,WAAW,CAAC,IAAI,EAAE,CAAC,EAC7D,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,YAAY,GACzD,CACH,CAAC,CAAC,CAAC,IAAI,CAAC;QACb,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,0BAA0B,EAAE,KAAK,CAAC,CAAC;QAEjD,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,YAAY,EAAE,CAAC;YACxD,OAAO,CACL,KAAC,YAAY,IACX,KAAK,EAAE,KAAc,EACrB,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,YAAY,GACzD,CACH,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@se-studio/core-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.72",
|
|
4
4
|
"description": "Shared React UI component library with Tailwind CSS v4 for SE Studio applications",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"html-entities": "^2.6.0",
|
|
60
60
|
"mustache": "4.2.0",
|
|
61
61
|
"tailwind-merge": "^3.4.0",
|
|
62
|
-
"@se-studio/contentful-rest-api": "1.0.
|
|
63
|
-
"@se-studio/core-data-types": "1.0.
|
|
62
|
+
"@se-studio/contentful-rest-api": "1.0.72",
|
|
63
|
+
"@se-studio/core-data-types": "1.0.72"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@biomejs/biome": "^2.3.15",
|