@ecomcx/ecomweb-theme-sdk 1.31.0 → 1.32.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.
- package/dist/rich.js +2 -2
- package/package.json +2 -2
package/dist/rich.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Fragment, cloneElement, isValidElement } from "react";
|
|
3
|
-
import { DYNAMIC_NODES, colorCss, embedInfo, normalizeContent, safeUrl, spacingValue, styleClass, styleCss } from "@ecomcx/ecomweb-content";
|
|
3
|
+
import { DYNAMIC_NODES, colorCss, embedInfo, motionClasses, normalizeContent, safeUrl, spacingValue, styleClass, styleCss } from "@ecomcx/ecomweb-content";
|
|
4
4
|
import { cx } from "./utils.js";
|
|
5
5
|
import { SOCIAL_ICONS } from "./social-icons.js";
|
|
6
6
|
const DYNAMIC = new Set(DYNAMIC_NODES);
|
|
@@ -137,7 +137,7 @@ function decorate(el, a, key, ctx) {
|
|
|
137
137
|
const cls = style ? styleClass(style) : null;
|
|
138
138
|
if (style && cls && ctx.styles && !ctx.styles.has(cls))
|
|
139
139
|
ctx.styles.set(cls, styleCss(style, cls));
|
|
140
|
-
const extra = cx(cls, a.blockStyle && `ecx-is-${a.blockStyle}`, a.className);
|
|
140
|
+
const extra = cx(cls, motionClasses(style), a.blockStyle && `ecx-is-${a.blockStyle}`, a.className);
|
|
141
141
|
if (isValidElement(el) && el.type !== Fragment && typeof el.type === "string") {
|
|
142
142
|
const e = el;
|
|
143
143
|
let inline = e.props.style;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecomcx/ecomweb-theme-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.32.0",
|
|
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.16.0",
|
|
37
37
|
"intl-messageformat": "12.1.3"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|