@se-studio/core-ui 1.0.12 → 1.0.13

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 +1 @@
1
- {"version":3,"file":"CmsConversionErrors.d.ts","sourceRoot":"","sources":["../../src/components/CmsConversionErrors.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAG/D,UAAU,wBAAwB;IAChC,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,mBAAmB,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,wBAAwB,kDAuErF"}
1
+ {"version":3,"file":"CmsConversionErrors.d.ts","sourceRoot":"","sources":["../../src/components/CmsConversionErrors.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAG/D,UAAU,wBAAwB;IAChC,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,mBAAmB,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,wBAAwB,kDA8HrF"}
@@ -8,6 +8,42 @@ export function CmsConversionErrors({ errors, isProduction }) {
8
8
  }
9
9
  const visibleErrors = expanded ? errors : errors.slice(0, 5);
10
10
  const hasMoreErrors = errors.length > 5;
11
- return (_jsx("div", { className: "bg-amber-50 border-l-4 border-amber-400 p-4 mb-6", children: _jsxs("div", { className: "flex items-start", children: [_jsx("div", { className: "flex-shrink-0", children: _jsxs("svg", { className: "h-5 w-5 text-amber-400", fill: "currentColor", viewBox: "0 0 20 20", children: [_jsx("title", { children: "Warning icon" }), _jsx("path", { fillRule: "evenodd", d: "M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z", clipRule: "evenodd" })] }) }), _jsxs("div", { className: "ml-3 flex-1", children: [_jsxs("div", { className: "flex items-center justify-between", children: [_jsxs("h3", { className: "text-sm font-medium text-amber-800", children: ["CMS Content Conversion Errors (", errors.length, ")"] }), hasMoreErrors && (_jsx("button", { type: "button", onClick: () => setExpanded(!expanded), className: "text-sm text-amber-700 hover:text-amber-600 underline", children: expanded ? 'Show less' : `Show ${errors.length - 5} more` }))] }), _jsxs("div", { className: "mt-2", children: [_jsx("p", { className: "text-sm text-amber-700 mb-3", children: "Some CMS content failed to convert properly. The page is still displayed below with available content." }), _jsx("div", { className: "space-y-2", children: visibleErrors.map((error, index) => (_jsx("div", { className: "rounded bg-amber-100 p-3", children: _jsx("div", { className: "flex items-start justify-between", children: _jsxs("div", { className: "flex-1", children: [_jsxs("div", { className: "flex items-center space-x-2", children: [_jsx("code", { className: "text-xs font-mono bg-amber-200 px-2 py-1 rounded text-amber-900", children: error.entryId }), error.entryType && (_jsx("span", { className: "text-xs text-amber-700 bg-amber-200 px-2 py-1 rounded", children: error.entryType }))] }), _jsx("p", { className: "mt-1 text-sm text-amber-800", children: error.message })] }) }) }, `${error.entryId}-${index}`))) })] })] })] }) }));
11
+ return (_jsx("div", { style: {
12
+ backgroundColor: '#fffbeb',
13
+ borderLeft: '4px solid #fbbf24',
14
+ padding: '1rem',
15
+ marginBottom: '1.5rem',
16
+ }, children: _jsxs("div", { style: { display: 'flex', alignItems: 'flex-start' }, children: [_jsx("div", { style: { flexShrink: 0 }, children: _jsxs("svg", { style: { height: '1.25rem', width: '1.25rem', color: '#fbbf24' }, fill: "currentColor", viewBox: "0 0 20 20", children: [_jsx("title", { children: "Warning icon" }), _jsx("path", { fillRule: "evenodd", d: "M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z", clipRule: "evenodd" })] }) }), _jsxs("div", { style: { marginLeft: '0.75rem', flex: 1 }, children: [_jsxs("div", { style: { display: 'flex', alignItems: 'center', justifyContent: 'space-between' }, children: [_jsxs("h3", { style: { fontSize: '0.875rem', color: '#92400e', fontWeight: 500 }, children: ["CMS Content Conversion Errors (", errors.length, ")"] }), hasMoreErrors && (_jsx("button", { type: "button", onClick: () => setExpanded(!expanded), style: {
17
+ fontSize: '0.875rem',
18
+ color: '#b45309',
19
+ textDecoration: 'underline',
20
+ background: 'none',
21
+ border: 'none',
22
+ cursor: 'pointer',
23
+ }, onMouseEnter: (e) => {
24
+ e.currentTarget.style.color = '#d97706';
25
+ }, onMouseLeave: (e) => {
26
+ e.currentTarget.style.color = '#b45309';
27
+ }, children: expanded ? 'Show less' : `Show ${errors.length - 5} more` }))] }), _jsxs("div", { style: { marginTop: '0.5rem' }, children: [_jsx("p", { style: { fontSize: '0.875rem', color: '#b45309', marginBottom: '0.75rem' }, children: "Some CMS content failed to convert properly. The page is still displayed below with available content." }), _jsx("div", { style: { display: 'flex', flexDirection: 'column', gap: '0.5rem' }, children: visibleErrors.map((error, index) => (_jsx("div", { style: {
28
+ borderRadius: '0.25rem',
29
+ backgroundColor: '#fef3c7',
30
+ padding: '0.75rem',
31
+ }, children: _jsx("div", { style: {
32
+ display: 'flex',
33
+ alignItems: 'flex-start',
34
+ justifyContent: 'space-between',
35
+ }, children: _jsxs("div", { style: { flex: 1 }, children: [_jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: '0.5rem' }, children: [_jsx("code", { style: {
36
+ fontSize: '0.75rem',
37
+ backgroundColor: '#fde68a',
38
+ padding: '0.25rem 0.5rem',
39
+ borderRadius: '0.25rem',
40
+ color: '#78350f',
41
+ }, children: error.entryId }), error.entryType && (_jsx("span", { style: {
42
+ fontSize: '0.75rem',
43
+ color: '#b45309',
44
+ backgroundColor: '#fde68a',
45
+ padding: '0.25rem 0.5rem',
46
+ borderRadius: '0.25rem',
47
+ }, children: error.entryType }))] }), _jsx("p", { style: { marginTop: '0.25rem', fontSize: '0.875rem', color: '#92400e' }, children: error.message })] }) }) }, `${error.entryId}-${index}`))) })] })] })] }) }));
12
48
  }
13
49
  //# sourceMappingURL=CmsConversionErrors.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CmsConversionErrors.js","sourceRoot":"","sources":["../../src/components/CmsConversionErrors.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAGb,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAOjC,MAAM,UAAU,mBAAmB,CAAC,EAAE,MAAM,EAAE,YAAY,EAA4B;IACpF,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAGhD,IAAI,YAAY,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxC,OAAO,IAAI,CAAC;IACd,CAAC;IAGD,MAAM,aAAa,GAAG,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7D,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC;IAExC,OAAO,CACL,cAAK,SAAS,EAAC,kDAAkD,YAC/D,eAAK,SAAS,EAAC,kBAAkB,aAC/B,cAAK,SAAS,EAAC,eAAe,YAC5B,eAAK,SAAS,EAAC,wBAAwB,EAAC,IAAI,EAAC,cAAc,EAAC,OAAO,EAAC,WAAW,aAC7E,2CAA2B,EAC3B,eACE,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,mNAAmN,EACrN,QAAQ,EAAC,SAAS,GAClB,IACE,GACF,EACN,eAAK,SAAS,EAAC,aAAa,aAC1B,eAA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,EAAE,aACrB,eAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,aAClE,eACE,KAAK,EAAE;oEACL,QAAQ,EAAE,SAAS;oEACnB,eAAe,EAAE,SAAS;oEAC1B,OAAO,EAAE,gBAAgB;oEACzB,YAAY,EAAE,SAAS;oEACvB,KAAK,EAAE,SAAS;iEACjB,YAEA,KAAK,CAAC,OAAO,GACT,EACN,KAAK,CAAC,SAAS,IAAI,CAClB,eACE,KAAK,EAAE;oEACL,QAAQ,EAAE,SAAS;oEACnB,KAAK,EAAE,SAAS;oEAChB,eAAe,EAAE,SAAS;oEAC1B,OAAO,EAAE,gBAAgB;oEACzB,YAAY,EAAE,SAAS;iEACxB,YAEA,KAAK,CAAC,SAAS,GACX,CACR,IACG,EACN,YAAG,KAAK,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,YACvE,KAAK,CAAC,OAAO,GACZ,IACA,GACF,IA7CD,GAAG,KAAK,CAAC,OAAO,IAAI,KAAK,EAAE,CA8C5B,CACP,CAAC,GACE,IACF,IACF,IACF,GACF,CACP,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@se-studio/core-ui",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Shared React UI component library with Tailwind CSS v4 for SE Studio applications",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,8 +42,8 @@
42
42
  "clsx": "^2.1.1",
43
43
  "html-entities": "^2.6.0",
44
44
  "tailwind-merge": "^3.4.0",
45
- "@se-studio/contentful-rest-api": "1.0.12",
46
- "@se-studio/core-data-types": "1.0.12"
45
+ "@se-studio/contentful-rest-api": "1.0.13",
46
+ "@se-studio/core-data-types": "1.0.13"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@biomejs/biome": "^2.3.6",