@ecomcx/ecomweb-theme-sdk 1.35.0 → 1.36.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.
- package/dist/dynamic.js +2 -1
- package/dist/rich.js +30 -59
- package/dist/types.d.ts +29 -5
- package/package.json +2 -2
package/dist/dynamic.js
CHANGED
|
@@ -222,7 +222,8 @@ export async function renderDynamic(node, key, ctx, children) {
|
|
|
222
222
|
if (!posts.length)
|
|
223
223
|
return null;
|
|
224
224
|
const grid = a.layout === "grid";
|
|
225
|
-
|
|
225
|
+
// Đúng N cột khi đủ chỗ (như canvas), ít cột hơn khi hẹp (mỗi cột tối thiểu 12rem) — trước đây N chỉ là gợi ý nên 3 cột thành 2
|
|
226
|
+
const style = grid ? { display: "grid", gap: "1.5rem", gridTemplateColumns: `repeat(auto-fill, minmax(max(12rem, calc((100% - ${(a.columns ?? 3) - 1} * 1.5rem) / ${a.columns ?? 3})), 1fr))`, listStyle: "none", padding: 0 } : { listStyle: "none", padding: 0 };
|
|
226
227
|
const items = await Promise.all(posts.map(async (p) => _jsx("li", { className: "ecx-post", children: await children({ ...ctx, post: p }) }, p.id)));
|
|
227
228
|
return _jsx("ul", { className: cx("ecx-post-template", grid && "is-grid"), style: style, children: items }, key);
|
|
228
229
|
}
|
package/dist/rich.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Fragment, cloneElement, isValidElement } from "react";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment, cloneElement, createElement, isValidElement } from "react";
|
|
3
3
|
import { ICON_PATHS } from "./icons.js";
|
|
4
|
-
import { DYNAMIC_NODES,
|
|
4
|
+
import { DYNAMIC_NODES, blockCitation, blockShell, buttonWrapShell, coverParts, linkRel, embedInfo, motionClasses, normalizeContent, safeUrl, styleClass, styleCss } from "@ecomcx/ecomweb-content";
|
|
5
5
|
import { cx } from "./utils.js";
|
|
6
6
|
import { SOCIAL_ICONS } from "./social-icons.js";
|
|
7
7
|
import { CountdownClient, LightboxClient, TabsClient } from "./client.js";
|
|
@@ -63,6 +63,11 @@ const TONES = { info: "#2563eb", success: "#16a34a", warning: "#d97706", danger:
|
|
|
63
63
|
function alignStyle(attrs) {
|
|
64
64
|
return attrs?.textAlign && attrs.textAlign !== "left" ? { textAlign: attrs.textAlign } : undefined;
|
|
65
65
|
}
|
|
66
|
+
/** Vẽ khối theo vỏ markup dùng chung với trình soạn (@ecomcx/ecomweb-content › blockShell): thẻ / class / style cùng một nguồn. */
|
|
67
|
+
function shelled(type, a, key, children, extra, parent) {
|
|
68
|
+
const sh = blockShell(type, a, parent);
|
|
69
|
+
return createElement(sh.tag, { key, className: sh.className, ...extra, style: sh.style, ...sh.attrs }, children);
|
|
70
|
+
}
|
|
66
71
|
function renderMarks(text, marks, key, ctx) {
|
|
67
72
|
let out = text;
|
|
68
73
|
for (const [i, m] of (marks ?? []).entries()) {
|
|
@@ -107,13 +112,7 @@ function renderMarks(text, marks, key, ctx) {
|
|
|
107
112
|
break;
|
|
108
113
|
case "link": {
|
|
109
114
|
const target = m.attrs?.target;
|
|
110
|
-
|
|
111
|
-
const rel = new Set(String(m.attrs?.rel ?? "").toLowerCase().split(/\s+/).filter((x) => /^[a-z-]+$/.test(x)));
|
|
112
|
-
if (target === "_blank") {
|
|
113
|
-
rel.add("noopener");
|
|
114
|
-
rel.add("noreferrer");
|
|
115
|
-
}
|
|
116
|
-
out = _jsx("a", { href: safeUrl(m.attrs?.href), target: target ?? undefined, rel: rel.size ? [...rel].join(" ") : undefined, children: out }, k);
|
|
115
|
+
out = _jsx("a", { href: safeUrl(m.attrs?.href), target: target ?? undefined, rel: linkRel(m.attrs?.rel, target), children: out }, k);
|
|
117
116
|
break;
|
|
118
117
|
}
|
|
119
118
|
}
|
|
@@ -255,20 +254,17 @@ async function renderNodeInner(node, key, ctx) {
|
|
|
255
254
|
console.warn(`[cms] Shortcode [${sc[1]}] không có plugin nào xử lý — đã ẩn khỏi trang`);
|
|
256
255
|
return null;
|
|
257
256
|
}
|
|
258
|
-
return
|
|
257
|
+
return shelled("paragraph", a, key, await children());
|
|
259
258
|
}
|
|
260
259
|
case "heading": {
|
|
261
|
-
|
|
262
|
-
const Tag = `h${level}`;
|
|
263
|
-
const id = headingId(node);
|
|
264
|
-
return _jsx(Tag, { id: id || undefined, style: alignStyle(a), children: await children() }, key);
|
|
260
|
+
return shelled("heading", a, key, await children(), { id: headingId(node) || undefined });
|
|
265
261
|
}
|
|
266
262
|
case "bulletList": return _jsx("ul", { children: await children() }, key);
|
|
267
263
|
case "orderedList": return _jsx("ol", { start: a.start && a.start !== 1 ? a.start : undefined, reversed: a.reversed === true || undefined, children: await children() }, key);
|
|
268
264
|
case "listItem": return _jsx("li", { children: await children() }, key);
|
|
269
265
|
case "taskList": return _jsx("ul", { className: "ecx-task-list task-list", children: await children() }, key);
|
|
270
266
|
case "taskItem": return _jsxs("li", { className: "ecx-task-item task-item", children: [_jsx("input", { type: "checkbox", checked: !!a.checked, readOnly: true }), " ", await children()] }, key);
|
|
271
|
-
case "blockquote": return
|
|
267
|
+
case "blockquote": return shelled("blockquote", a, key, _jsxs(_Fragment, { children: [await children(), blockCitation(a) && _jsx("cite", { children: blockCitation(a) })] }));
|
|
272
268
|
case "codeBlock": return _jsx("pre", { children: _jsx("code", { className: a.language ? `language-${a.language}` : undefined, children: plainText(node) }) }, key);
|
|
273
269
|
case "hardBreak": return _jsx("br", {}, key);
|
|
274
270
|
case "pageBreak": return null;
|
|
@@ -294,14 +290,14 @@ async function renderNodeInner(node, key, ctx) {
|
|
|
294
290
|
const bare = a.webpSrcset ? _jsxs("picture", { children: [_jsx("source", { type: "image/webp", srcSet: a.webpSrcset, sizes: sizes }), img] }) : img;
|
|
295
291
|
// next: ảnh có liên kết (href qua safeUrl; mở tab mới thì noopener)
|
|
296
292
|
const pic = a.lightbox === true && !a.href ? _jsx(LightboxClient, { src: safeUrl(a.src, ""), alt: a.alt ?? "", children: bare }) : a.href ? _jsx("a", { href: safeUrl(a.href), target: a.linkTarget === "_blank" ? "_blank" : undefined, rel: a.linkTarget === "_blank" ? "noopener noreferrer" : undefined, children: bare }) : bare;
|
|
297
|
-
const cls =
|
|
293
|
+
const cls = blockShell("image", a).className;
|
|
298
294
|
return a.caption || a.align ? _jsxs("figure", { className: cls, children: [pic, a.caption && _jsx("figcaption", { children: a.caption })] }, key) : _jsx(Fragment, { children: pic }, key);
|
|
299
295
|
}
|
|
300
296
|
case "gallery": {
|
|
301
297
|
const items = (a.images ?? []);
|
|
302
298
|
const cols = Math.min(6, Math.max(1, Number(a.columns) || 3));
|
|
303
299
|
const crop = a.imageCrop !== false; // next: imageCrop=false giữ nguyên tỉ lệ ảnh
|
|
304
|
-
return (_jsxs("figure", { className:
|
|
300
|
+
return (_jsxs("figure", { className: blockShell("gallery", a).className, style: blockShell("gallery", a).style, children: [items.map((im, i) => {
|
|
305
301
|
const el = _jsx("img", { src: safeUrl(im.src, ""), srcSet: im.srcset || undefined, sizes: `(max-width: 768px) 50vw, ${Math.round(100 / cols)}vw`, alt: im.alt ?? "", width: im.width, height: im.height, loading: "lazy", decoding: "async", style: crop ? { width: "100%", height: "100%", objectFit: "cover", aspectRatio: "1" } : { width: "100%", height: "auto" } });
|
|
306
302
|
const pic = im.webpSrcset ? _jsxs("picture", { children: [_jsx("source", { type: "image/webp", srcSet: im.webpSrcset, sizes: `(max-width: 768px) 50vw, ${Math.round(100 / cols)}vw` }), el] }) : el;
|
|
307
303
|
return _jsxs("figure", { className: "ecx-gallery-item cms-gallery-item", style: { margin: 0 }, children: [a.lightbox === true ? _jsx(LightboxClient, { src: safeUrl(im.full || im.src, ""), alt: im.alt ?? "", children: pic }) : im.full && a.linkTo !== "none" ? _jsx("a", { href: safeUrl(im.full), children: pic }) : pic, im.caption && _jsx("figcaption", { children: im.caption })] }, i);
|
|
@@ -334,64 +330,39 @@ async function renderNodeInner(node, key, ctx) {
|
|
|
334
330
|
}
|
|
335
331
|
// Bố cục (@ecomcx/ecomweb-content 1.2). Cấu trúc dùng style trực tiếp → mọi theme hiển thị đúng; class `ecx-*` để theme tạo kiểu thêm (`cms-*` giữ tới 2.0).
|
|
336
332
|
case "columns": {
|
|
337
|
-
// Cột co giãn theo tỉ lệ độ rộng; màn hẹp (mỗi cột < 14rem) tự xuống dòng thành một cột — không cần CSS của theme
|
|
338
|
-
const stack = a.stack !== false;
|
|
339
|
-
const align = a.verticalAlign === "center" ? "center" : a.verticalAlign === "bottom" ? "flex-end" : "flex-start";
|
|
340
333
|
const cols = await Promise.all((node.content ?? []).map(async (c, i) => {
|
|
341
|
-
const w = Number(c.attrs?.width) > 0 ? Number(c.attrs?.width) : 1;
|
|
342
334
|
const inner = await Promise.all((c.content ?? []).map((cc, j) => renderNode(cc, `${key}-${i}-${j}`, ctx)));
|
|
343
|
-
return
|
|
335
|
+
return shelled("column", c.attrs ?? {}, `${key}-${i}`, inner, undefined, { type: "columns", attrs: a });
|
|
344
336
|
}));
|
|
345
|
-
return
|
|
346
|
-
}
|
|
347
|
-
case "column": return _jsx("div", { className: "ecx-column cms-column", children: await children() }, key);
|
|
348
|
-
case "group": {
|
|
349
|
-
const bg = safeColor(a.background), fg = safeColor(a.textColor);
|
|
350
|
-
const pad = PADDING[a.padding] ?? (bg ? PADDING.medium : undefined);
|
|
351
|
-
return _jsx("div", { className: cx("ecx-group cms-group", a.padding && `ecx-group-${a.padding} cms-group-${a.padding}`), style: { background: bg, color: fg, padding: pad, borderRadius: bg ? 12 : undefined }, children: await children() }, key);
|
|
352
|
-
}
|
|
353
|
-
case "callout": {
|
|
354
|
-
const tone = TONES[a.tone] ? a.tone : "info";
|
|
355
|
-
return (_jsxs("div", { role: "note", className: cx("ecx-callout cms-callout", `ecx-callout-${tone} cms-callout-${tone}`), style: { borderLeft: `4px solid ${TONES[tone]}`, background: `color-mix(in srgb, ${TONES[tone]} 8%, transparent)`, padding: "0.75rem 1rem", borderRadius: 8 }, children: [a.title && _jsx("p", { className: "ecx-callout-title cms-callout-title", style: { margin: 0, fontWeight: 600 }, children: a.title }), await children()] }, key));
|
|
337
|
+
return shelled("columns", a, key, cols);
|
|
356
338
|
}
|
|
339
|
+
case "column": return shelled("column", a, key, await children());
|
|
340
|
+
case "group": return shelled("group", a, key, await children());
|
|
341
|
+
case "callout": return shelled("callout", a, key, _jsxs(_Fragment, { children: [a.title && _jsx("p", { className: "ecx-callout-title cms-callout-title", style: { margin: 0, fontWeight: 600 }, children: a.title }), await children()] }));
|
|
357
342
|
case "button": {
|
|
358
343
|
if (!a.text)
|
|
359
344
|
return null;
|
|
360
|
-
const variant = a.variant === "secondary" || a.variant === "outline" ? a.variant : "primary";
|
|
361
345
|
const target = a.target === "_blank" ? "_blank" : undefined;
|
|
362
|
-
const
|
|
363
|
-
if (target) {
|
|
364
|
-
rel.add("noopener");
|
|
365
|
-
rel.add("noreferrer");
|
|
366
|
-
}
|
|
367
|
-
const look = variant === "outline"
|
|
368
|
-
? { border: "1px solid var(--ecx-button-bg, var(--cms-button-bg, var(--primary, currentColor)))", color: "var(--ecx-button-bg, var(--cms-button-bg, var(--primary, inherit)))" }
|
|
369
|
-
: variant === "secondary"
|
|
370
|
-
? { background: "var(--ecx-button-secondary-bg, var(--cms-button-secondary-bg, rgba(127,127,127,.15)))", color: "inherit" }
|
|
371
|
-
: { background: "var(--ecx-button-bg, var(--cms-button-bg, var(--primary, #18181b)))", color: "var(--ecx-button-fg, var(--cms-button-fg, #fff))" };
|
|
372
|
-
const link = (_jsx("a", { className: cx("ecx-button cms-button", `ecx-button-${variant} cms-button-${variant}`), href: safeUrl(a.href), target: target, rel: rel.size ? [...rel].join(" ") : undefined, style: { display: "inline-block", padding: "0.6em 1.2em", borderRadius: 8, textDecoration: "none", fontWeight: 600, lineHeight: 1.2, ...look }, children: a.text }, ctx.inButtons ? key : undefined));
|
|
346
|
+
const link = shelled("button", a, ctx.inButtons ? key : "", a.text, { href: safeUrl(a.href), target, rel: linkRel(a.rel, target) });
|
|
373
347
|
if (ctx.inButtons)
|
|
374
348
|
return link;
|
|
375
|
-
return (
|
|
349
|
+
return createElement(buttonWrapShell(a).tag, { key, className: buttonWrapShell(a).className, style: buttonWrapShell(a).style }, link);
|
|
376
350
|
}
|
|
377
351
|
// Bộ khối cơ bản (@ecomcx/ecomweb-content 1.9)
|
|
378
352
|
case "spacer":
|
|
379
|
-
return
|
|
353
|
+
return shelled("spacer", a, key, null);
|
|
380
354
|
case "buttons": {
|
|
381
355
|
const items = await Promise.all((node.content ?? []).map((c, i) => renderNode(c, `${key}-${i}`, { ...ctx, inButtons: true })));
|
|
382
|
-
return
|
|
356
|
+
return shelled("buttons", a, key, items);
|
|
383
357
|
}
|
|
384
358
|
case "cover": {
|
|
385
|
-
const src
|
|
386
|
-
const
|
|
387
|
-
return (
|
|
388
|
-
}
|
|
389
|
-
case "mediaText": {
|
|
390
|
-
const width = Math.min(80, Math.max(20, Number(a.width) || 50));
|
|
391
|
-
return (_jsxs("div", { className: cx("ecx-media-text", a.position === "right" && "is-right", a.verticalAlign && a.verticalAlign !== "center" && `is-${a.verticalAlign}`, a.stack !== false && "is-stack"), style: { ["--ecx-media-width"]: `${width}%` }, children: [_jsx("figure", { className: "ecx-media-text-media", style: { margin: 0 }, children: a.src && _jsx("img", { src: safeUrl(a.src, ""), alt: a.alt ?? "", loading: "lazy", decoding: "async" }) }), _jsx("div", { className: "ecx-media-text-content", children: await children() })] }, key));
|
|
359
|
+
const { src, fixed, overlay, opacity } = coverParts(a);
|
|
360
|
+
const url = src ? safeUrl(src, "") : "";
|
|
361
|
+
return shelled("cover", a, key, _jsxs(_Fragment, { children: [url && !fixed && _jsx("img", { className: "ecx-cover-img", src: url, alt: a.alt ?? "", loading: "lazy", decoding: "async" }), overlay && _jsx("span", { className: "ecx-cover-overlay", "aria-hidden": "true", style: { background: overlay, opacity } }), _jsx("div", { className: "ecx-cover-inner", children: await children() })] }), undefined);
|
|
392
362
|
}
|
|
363
|
+
case "mediaText": return shelled("mediaText", a, key, _jsxs(_Fragment, { children: [_jsx("figure", { className: "ecx-media-text-media", style: { margin: 0 }, children: a.src && _jsx("img", { src: safeUrl(a.src, ""), alt: a.alt ?? "", loading: "lazy", decoding: "async" }) }), _jsx("div", { className: "ecx-media-text-content", children: await children() })] }));
|
|
393
364
|
case "pullquote":
|
|
394
|
-
return
|
|
365
|
+
return shelled("pullquote", a, key, _jsxs(_Fragment, { children: [_jsx("blockquote", { children: _jsx("p", { children: await children() }) }), blockCitation(a) && _jsx("figcaption", { children: blockCitation(a) })] }));
|
|
395
366
|
case "accordion": {
|
|
396
367
|
const sub = a.multiple === true ? ctx : { ...ctx, accordion: `ecx-acc-${key}` };
|
|
397
368
|
return _jsx("div", { className: "ecx-accordion", children: await Promise.all((node.content ?? []).map((c, i) => renderNode(c, `${key}-${i}`, sub))) }, key);
|
|
@@ -432,7 +403,7 @@ async function renderNodeInner(node, key, ctx) {
|
|
|
432
403
|
return _jsxs("details", { className: "ecx-details", name: ctx.accordion, open: a.open === true || undefined, children: [_jsx("summary", { children: a.summary || "…" }), await children()] }, key);
|
|
433
404
|
case "customHtml":
|
|
434
405
|
// Máy chủ đã lọc HTML khi người soạn thiếu quyền unfiltered_html (ContentSanitizer)
|
|
435
|
-
return a.html ?
|
|
406
|
+
return a.html ? createElement(blockShell("customHtml", a).tag, { key, className: blockShell("customHtml", a).className, dangerouslySetInnerHTML: { __html: String(a.html) } }) : null;
|
|
436
407
|
case "socialLinks": {
|
|
437
408
|
const links = (Array.isArray(a.links) ? a.links : []).filter((l) => l && typeof l.url === "string" && typeof l.service === "string" && /^[a-z0-9-]{1,30}$/.test(l.service));
|
|
438
409
|
if (!links.length)
|
|
@@ -458,7 +429,7 @@ async function renderNodeInner(node, key, ctx) {
|
|
|
458
429
|
if (!info)
|
|
459
430
|
return a.url ? _jsx("p", { className: "ecx-embed-link cms-embed-link", children: _jsx("a", { href: safeUrl(a.url), target: "_blank", rel: "noopener noreferrer", children: a.caption || a.url }) }, key) : null;
|
|
460
431
|
const box = info.aspect ? { position: "relative", aspectRatio: String(info.aspect) } : { position: "relative", height: info.height };
|
|
461
|
-
return (
|
|
432
|
+
return shelled("embed", a, key, _jsxs(_Fragment, { children: [_jsx("div", { style: box, children: _jsx("iframe", { src: info.src, title: a.caption || info.title, loading: "lazy", allowFullScreen: true, referrerPolicy: "strict-origin-when-cross-origin", allow: "autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture", style: { position: "absolute", inset: 0, width: "100%", height: "100%", border: 0, borderRadius: 8 } }) }), a.caption && _jsx("figcaption", { children: a.caption })] }));
|
|
462
433
|
}
|
|
463
434
|
default: {
|
|
464
435
|
if (DYNAMIC.has(node.type))
|
package/dist/types.d.ts
CHANGED
|
@@ -244,6 +244,31 @@ export interface LayoutProps {
|
|
|
244
244
|
/** Trang đang xem — truyền cho <EditableRegion data={data}> để vùng (và plugin thay vùng) biết trang nào. */
|
|
245
245
|
data?: ResolveResult;
|
|
246
246
|
}
|
|
247
|
+
/** Một giá trị preset: chuỗi, hoặc { label, value } để hiện tên trong Thiết kế. */
|
|
248
|
+
export type ThemeStyleValue = string | {
|
|
249
|
+
label?: string;
|
|
250
|
+
value: string;
|
|
251
|
+
};
|
|
252
|
+
/** Bộ phối sẵn của theme (CMS ≥ 1.23): bấm một lần là đổi màu / phông ở Thiết kế › Phong cách. */
|
|
253
|
+
export interface ThemeStyleVariation {
|
|
254
|
+
id: string;
|
|
255
|
+
title: string;
|
|
256
|
+
colors?: Record<string, string>;
|
|
257
|
+
fonts?: Record<string, string>;
|
|
258
|
+
}
|
|
259
|
+
export interface ThemeStyles {
|
|
260
|
+
colors?: Record<string, ThemeStyleValue>;
|
|
261
|
+
fontSizes?: Record<string, ThemeStyleValue>;
|
|
262
|
+
spacing?: Record<string, ThemeStyleValue>;
|
|
263
|
+
fonts?: Record<string, ThemeStyleValue>;
|
|
264
|
+
gradients?: Record<string, ThemeStyleValue>;
|
|
265
|
+
shadows?: Record<string, ThemeStyleValue>;
|
|
266
|
+
variations?: ThemeStyleVariation[];
|
|
267
|
+
/** Kiểu mặc định theo loại khối / phần tử (Global Styles). */
|
|
268
|
+
blocks?: Record<string, unknown>;
|
|
269
|
+
elements?: Record<string, unknown>;
|
|
270
|
+
[group: string]: unknown;
|
|
271
|
+
}
|
|
247
272
|
export interface ThemeManifest {
|
|
248
273
|
name: string;
|
|
249
274
|
slug: string;
|
|
@@ -262,6 +287,8 @@ export interface ThemeManifest {
|
|
|
262
287
|
options?: string[];
|
|
263
288
|
section?: string;
|
|
264
289
|
help?: string;
|
|
290
|
+
/** Ô màu trùng một màu preset (`primary`, `text`, `background`…): chỉnh ở tab Phong cách, ô ẩn khỏi Cài đặt (CMS ≥ 1.23). */
|
|
291
|
+
preset?: string;
|
|
265
292
|
}>;
|
|
266
293
|
/** Cỡ ảnh riêng của theme: { "card": { "width": 600, "height": 400, "crop": true } }. */
|
|
267
294
|
imageSizes?: Record<string, {
|
|
@@ -274,11 +301,8 @@ export interface ThemeManifest {
|
|
|
274
301
|
editing?: "code" | "hybrid" | "blocks";
|
|
275
302
|
/** Vùng sửa được của theme hybrid: { header: "Đầu trang" } — vẽ bằng <EditableRegion name="header">, sửa trong Trình dựng. */
|
|
276
303
|
regions?: Record<string, string>;
|
|
277
|
-
/** Preset kiểu dáng: { colors: { primary: { label, value } | "#hex" }, fontSizes, spacing, fonts }. */
|
|
278
|
-
styles?:
|
|
279
|
-
label?: string;
|
|
280
|
-
value: string;
|
|
281
|
-
}>>;
|
|
304
|
+
/** Preset kiểu dáng: { colors: { primary: { label, value } | "#hex" }, fontSizes, spacing, fonts, variations, blocks, elements }. */
|
|
305
|
+
styles?: ThemeStyles;
|
|
282
306
|
/** Biến thể kiểu theo loại khối: { table: [{ name: "bordered", label: "%…%" }] } → class .ecx-is-<name>. */
|
|
283
307
|
blockStyles?: Record<string, Array<{
|
|
284
308
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecomcx/ecomweb-theme-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.36.1",
|
|
4
4
|
"description": "SDK để viết theme và phần frontend của plugin cho Ecomweb",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"README.md"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@ecomcx/ecomweb-content": "^1.
|
|
36
|
+
"@ecomcx/ecomweb-content": "^1.19.0",
|
|
37
37
|
"intl-messageformat": "12.1.3"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|