@ecomcx/ecomweb-editor 1.30.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/package.json +3 -3
- package/src/locales/en/attrs.ts +10 -0
- package/src/locales/en/background.ts +17 -0
- package/src/locales/en/block-desc.ts +1 -0
- package/src/locales/en/block-style.ts +7 -4
- package/src/locales/en/block-titles.ts +1 -0
- package/src/locales/en/blocks.ts +10 -2
- package/src/locales/en/columns.ts +12 -0
- package/src/locales/en/controls.ts +21 -0
- package/src/locales/en/hints.ts +215 -1
- package/src/locales/en/index.ts +6 -2
- package/src/locales/en/layout.ts +32 -0
- package/src/locales/en/legacy.ts +1 -1
- package/src/locales/en/library.ts +38 -0
- package/src/locales/en/parts.ts +12 -0
- package/src/locales/en/placeholders.ts +104 -0
- package/src/locales/en/presets.ts +6 -0
- package/src/locales/en/v2.ts +21 -0
- package/src/locales/vi/attrs.ts +10 -0
- package/src/locales/vi/background.ts +17 -0
- package/src/locales/vi/block-desc.ts +1 -0
- package/src/locales/vi/block-style.ts +7 -4
- package/src/locales/vi/block-titles.ts +1 -0
- package/src/locales/vi/blocks.ts +10 -2
- package/src/locales/vi/columns.ts +12 -0
- package/src/locales/vi/controls.ts +21 -0
- package/src/locales/vi/hints.ts +216 -2
- package/src/locales/vi/index.ts +6 -2
- package/src/locales/vi/layout.ts +32 -0
- package/src/locales/vi/legacy.ts +1 -1
- package/src/locales/vi/library.ts +38 -0
- package/src/locales/vi/parts.ts +12 -0
- package/src/locales/vi/placeholders.ts +103 -0
- package/src/locales/vi/presets.ts +6 -0
- package/src/locales/vi/v2.ts +21 -0
- package/src/shared/panel-store.ts +3 -3
- package/src/shared/patterns.ts +3 -52
- package/src/shared/style-panel.tsx +2 -2
- package/src/shared/types.ts +2 -0
- package/src/v2/blocks/columns-inspector.tsx +210 -0
- package/src/v2/blocks/compat.tsx +91 -5
- package/src/v2/blocks/form.tsx +7 -4
- package/src/v2/blocks/index.ts +10 -4
- package/src/v2/blocks/inline-style.ts +1 -1
- package/src/v2/blocks/layout.tsx +305 -83
- package/src/v2/blocks/media.tsx +91 -81
- package/src/v2/blocks/resize.tsx +172 -4
- package/src/v2/blocks/text.tsx +60 -22
- package/src/v2/blocks/theme.tsx +83 -17
- package/src/v2/blocks/tools.tsx +50 -5
- package/src/v2/blocks/widgets.tsx +85 -20
- package/src/v2/canvas/block-list.tsx +21 -6
- package/src/v2/canvas/canvas-css.ts +139 -7
- package/src/v2/canvas/canvas.tsx +20 -3
- package/src/v2/canvas/dnd.ts +34 -3
- package/src/v2/canvas/move-animation.ts +94 -0
- package/src/v2/canvas/server-block.tsx +7 -4
- package/src/v2/canvas/spacing-viz.ts +51 -0
- package/src/v2/core/block-presets.ts +68 -0
- package/src/v2/core/host.ts +14 -0
- package/src/v2/core/registry.ts +3 -1
- package/src/v2/core/structure.ts +4 -2
- package/src/v2/editor.css +244 -11
- package/src/v2/editor.tsx +8 -2
- package/src/v2/index.ts +3 -0
- package/src/v2/ui/ai.tsx +9 -5
- package/src/v2/ui/attr-form.tsx +42 -13
- package/src/v2/ui/attr-hints.ts +104 -6
- package/src/v2/ui/background-panel.tsx +65 -21
- package/src/v2/ui/block-icons.tsx +152 -0
- package/src/v2/ui/block-menu.ts +22 -0
- package/src/v2/ui/block-style-panel.tsx +14 -3
- package/src/v2/ui/color-field.tsx +74 -9
- package/src/v2/ui/divider-panel.tsx +58 -0
- package/src/v2/ui/group-width.tsx +38 -0
- package/src/v2/ui/icon-picker.tsx +51 -0
- package/src/v2/ui/inserter.tsx +51 -7
- package/src/v2/ui/inspector.tsx +48 -16
- package/src/v2/ui/layout-panel.tsx +5 -47
- package/src/v2/ui/list-view.tsx +81 -7
- package/src/v2/{blocks → ui}/media-actions.tsx +4 -3
- package/src/v2/ui/motion-panel.tsx +2 -1
- package/src/v2/ui/parts-panel.tsx +164 -0
- package/src/v2/ui/pattern-library.tsx +228 -0
- package/src/v2/ui/placeholders.tsx +205 -0
- package/src/v2/ui/preset-bar.tsx +83 -0
- package/src/v2/ui/style-controls.tsx +65 -15
- package/src/v2/ui/style-supports.ts +1 -1
- package/src/v2/ui/style-tab.tsx +127 -41
- package/src/v2/ui/toolbar.tsx +59 -16
- package/src/v2/ui/unit-controls.tsx +88 -39
- package/src/locales/en/patterns.ts +0 -50
- package/src/locales/vi/patterns.ts +0 -50
- package/src/shared/patterns-kit.ts +0 -7
- package/src/shared/patterns-library.ts +0 -172
package/src/v2/blocks/compat.tsx
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { blockDefaults } from "@ecomcx/ecomweb-content";
|
|
2
|
-
import { Blocks } from "lucide-react";
|
|
3
|
-
import type
|
|
1
|
+
import { blockDefaults, isSafeUrl, type BlockAttrSpec, type BlockDefinition } from "@ecomcx/ecomweb-content";
|
|
2
|
+
import { Blocks, X } from "lucide-react";
|
|
3
|
+
import { useId, type ComponentType, type ReactNode } from "react";
|
|
4
|
+
import { useEditor } from "../context";
|
|
5
|
+
import { useMsgs } from "../i18n";
|
|
6
|
+
import { attrLabel, controlOf } from "../ui/attr-form";
|
|
7
|
+
import { MediaPlaceholder, MissingNote, TextPlaceholder } from "../ui/placeholders";
|
|
4
8
|
import { blockOptions, onBlockDefinitionsChange, registeredBlocks, type BlockEditProps as V1EditProps } from "../../shared/block-defs";
|
|
5
9
|
import { InnerBlocks } from "../canvas/block-list";
|
|
6
10
|
import { fromRich, makeBlock } from "../core/model";
|
|
@@ -19,6 +23,85 @@ function wrapV1Edit(Edit: ComponentType<V1EditProps>): ComponentType<BlockEditPr
|
|
|
19
23
|
};
|
|
20
24
|
}
|
|
21
25
|
|
|
26
|
+
/** Loại ô core tự vẽ trong khối plugin; select / checkbox / color là tuỳ chọn → ở thanh bên. */
|
|
27
|
+
const INLINE_CONTROLS = new Set(["media", "text", "textarea", "url", "number"]);
|
|
28
|
+
const TECH_ATTRS = new Set(["_v", "style", "className", "anchor", "blockStyle", "mediaId", "id", "lock", "templateLock", "bindings", "metadata"]);
|
|
29
|
+
const empty = (v: unknown) => v == null || v === "" || (Array.isArray(v) && !v.length);
|
|
30
|
+
|
|
31
|
+
/** Ô của khối plugin theo `placeholder.fields` (mặc định: mọi thuộc tính media / text / textarea / url / number). */
|
|
32
|
+
export function placeholderFields(def: Pick<BlockDefinition, "attributes"> & { placeholder?: { fields?: string[]; required?: string[] } }): { fields: string[]; required: string[] } {
|
|
33
|
+
const attrs = def.attributes ?? {};
|
|
34
|
+
const auto = Object.keys(attrs).filter((k) => !TECH_ATTRS.has(k) && INLINE_CONTROLS.has(controlOf(attrs[k])));
|
|
35
|
+
const fields = (def.placeholder?.fields ?? auto).filter((k) => attrs[k]);
|
|
36
|
+
return { fields, required: (def.placeholder?.required ?? []).filter((k) => attrs[k]) };
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** Một ô giữ chỗ tự sinh (có <label> cho trình đọc màn hình). */
|
|
40
|
+
function AutoField({ name, spec, label, value, required, set }: { name: string; spec: BlockAttrSpec; label: string; value: unknown; required: boolean; set(v: unknown): void }) {
|
|
41
|
+
const id = useId();
|
|
42
|
+
const tp = useMsgs("placeholders");
|
|
43
|
+
const control = controlOf(spec);
|
|
44
|
+
const head = <span className="ecx-ph-label">{label}{required && <span className="ecx-ph-req" aria-hidden> *</span>}</span>;
|
|
45
|
+
if (control === "media") {
|
|
46
|
+
const url = typeof value === "string" && isSafeUrl(value) ? value : "";
|
|
47
|
+
return (
|
|
48
|
+
<div className="ecx-ph-field is-media" role="group" aria-label={label} data-field={name}>
|
|
49
|
+
{head}
|
|
50
|
+
{url ? (
|
|
51
|
+
<span className="ecx-ph-thumb" contentEditable={false}>
|
|
52
|
+
<img src={url} alt="" draggable={false} />
|
|
53
|
+
<button type="button" className="ecx-tool" aria-label={`${label}: ×`} onMouseDown={(e) => e.stopPropagation()} onClick={() => set(undefined)}><X className="ecx-icon ecx-icon-sm" /></button>
|
|
54
|
+
</span>
|
|
55
|
+
) : <MediaPlaceholder kind="image" compact title={tp.drop.image} onSelect={(items) => set(items[0].url)} onUrl={(u) => set(u)} />}
|
|
56
|
+
</div>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
const num = control === "number";
|
|
60
|
+
const bad = control === "url" && typeof value === "string" && value !== "" && !isSafeUrl(value);
|
|
61
|
+
return (
|
|
62
|
+
<label className="ecx-ph-field" htmlFor={id} data-field={name} contentEditable={false} onMouseDown={(e) => e.stopPropagation()}>
|
|
63
|
+
{head}
|
|
64
|
+
{control === "text" || control === "textarea"
|
|
65
|
+
? <TextPlaceholder id={id} value={String(value ?? "")} onChange={(v) => set(v)} placeholder={`${label}…`} multiline={control === "textarea"} required={required} label={label} className="ecx-input" />
|
|
66
|
+
: <input id={id} className="ecx-input" type={num ? "number" : "url"} inputMode={num ? "decimal" : "url"} min={spec.min} max={spec.max} placeholder={num ? "0" : "https://…"} required={required}
|
|
67
|
+
value={value == null ? "" : String(value)} aria-invalid={bad || undefined} onChange={(e) => set(e.target.value === "" ? undefined : num ? Number(e.target.value) : e.target.value.trim())} />}
|
|
68
|
+
{bad && <span className="ecx-media-error" role="alert">{tp.linkInvalid}</span>}
|
|
69
|
+
</label>
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Khối plugin không có giao diện riêng: core tự vẽ ô giữ chỗ từ `attributes` (ô thả media, ô gõ, ô link, ô số; khối chứa → "+ Thêm khối").
|
|
75
|
+
* Đang chọn / website chưa vẽ được → các ô này; bấm ra ngoài và website vẽ được → bản website vẽ (ServerBlock).
|
|
76
|
+
*/
|
|
77
|
+
function autoEdit(def: BlockDefinition, translate: (s: string) => string, Icon: ComponentType<{ className?: string }>): ComponentType<BlockEditProps> {
|
|
78
|
+
const { fields, required } = placeholderFields(def as never);
|
|
79
|
+
return function AutoPlaceholderEdit({ block, blockProps, setAttrs, editable, labels }: BlockEditProps) {
|
|
80
|
+
const { store } = useEditor();
|
|
81
|
+
const tp = useMsgs("placeholders");
|
|
82
|
+
const label = (k: string) => attrLabel(k, def.attributes[k], labels.lang, translate);
|
|
83
|
+
const missing = required.filter((k) => empty(block.attrs[k]));
|
|
84
|
+
const others = Object.keys(def.attributes).some((k) => !TECH_ATTRS.has(k) && !fields.includes(k) && controlOf(def.attributes[k]) !== "hidden");
|
|
85
|
+
let body: ReactNode = null;
|
|
86
|
+
if (editable && fields.length) body = (
|
|
87
|
+
// Gõ vào ô của khối → chọn khối (thanh công cụ + bảng cài đặt đúng khối)
|
|
88
|
+
<div className="ecx-ph-fields" onFocusCapture={() => { if (!store.getState().selection.ids.includes(block.id)) store.select([block.id], { editing: null }); }}>
|
|
89
|
+
{fields.map((k) => <AutoField key={k} name={k} spec={def.attributes[k]} label={label(k)} value={block.attrs[k]} required={required.includes(k)} set={(v) => setAttrs({ [k]: v })} />)}
|
|
90
|
+
</div>
|
|
91
|
+
);
|
|
92
|
+
return (
|
|
93
|
+
<div {...blockProps} className={cx(blockProps.className, "ecx-placeholder-block ecx-ph-auto", missing.length && "is-missing")} data-ecx-placeholder="auto">
|
|
94
|
+
<span className="ecx-placeholder-title"><Icon className="ecx-icon" />{translate(def.title)}</span>
|
|
95
|
+
{body}
|
|
96
|
+
{block.inline && <RichText blockId={block.id} value={block.inline} tagName="div" placeholder={`${translate(def.title)}…`} placeholderAlways editable={editable} />}
|
|
97
|
+
{editable && <MissingNote fields={missing.map(label)} />}
|
|
98
|
+
{editable && others && <span className="ecx-placeholder-summary">{tp.otherSettings}</span>}
|
|
99
|
+
{block.content && <InnerBlocks parent={block} />}
|
|
100
|
+
</div>
|
|
101
|
+
);
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
22
105
|
/**
|
|
23
106
|
* Khối plugin đăng ký bằng registerBlock(defineBlock(...)) → khối v2 (form cài đặt tự sinh, xem trước của plugin nếu có).
|
|
24
107
|
* Plugin cài sau khi mở trình soạn vẫn hiện (theo dõi thay đổi). Trả về hàm huỷ theo dõi.
|
|
@@ -38,9 +121,12 @@ export function syncPluginBlocks(registry: BlockTypeRegistry): () => void {
|
|
|
38
121
|
icon: o.icon ?? Blocks,
|
|
39
122
|
templateOnly: o.templateOnly,
|
|
40
123
|
...(o.styleGroups ? { supports: { style: o.styleGroups.length ? o.styleGroups : false } } : {}),
|
|
41
|
-
|
|
42
|
-
|
|
124
|
+
// Không có xem trước riêng: core tự sinh ô giữ chỗ từ thuộc tính (plugin cũ không sửa gì vẫn có)
|
|
125
|
+
edit: o.edit ? wrapV1Edit(o.edit) : autoEdit(def, t, o.icon ?? Blocks),
|
|
126
|
+
// Không có xem trước riêng và không chứa khối con → website vẽ bằng renderer của theme/plugin (viết khối một lần);
|
|
127
|
+
// đang chọn khối → ô giữ chỗ để nhập ngay trên khối
|
|
43
128
|
serverRender: !o.edit && def.content !== "blocks",
|
|
129
|
+
editWhenSelected: !o.edit,
|
|
44
130
|
create: (attrs) => {
|
|
45
131
|
// blockDefaults kèm "_v" = phiên bản khối: thiếu nó website coi dữ liệu mới là bản 1 rồi chạy migrate lên dữ liệu đã ở bản mới
|
|
46
132
|
const defaults = blockDefaults(def);
|
package/src/v2/blocks/form.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CORE_NODES, FORM_FIELD_NAME, blockShell } from "@ecomcx/ecomweb-content";
|
|
1
|
+
import { CORE_NODES, FORM_FIELD_NAME, blockShell, formClass } from "@ecomcx/ecomweb-content";
|
|
2
2
|
import { ClipboardList, TextCursorInput } from "lucide-react";
|
|
3
3
|
import { useEffect, type CSSProperties } from "react";
|
|
4
4
|
import { InnerBlocks } from "../canvas/block-list";
|
|
@@ -9,6 +9,7 @@ import { messages } from "../../i18n";
|
|
|
9
9
|
import { RichText } from "../text/rich-text";
|
|
10
10
|
import { Field } from "../ui/attr-form";
|
|
11
11
|
import { useEditor } from "../context";
|
|
12
|
+
import { AddBlockButton } from "../ui/placeholders";
|
|
12
13
|
|
|
13
14
|
const cx = (...c: unknown[]) => c.filter((x): x is string => typeof x === "string" && x !== "").join(" ");
|
|
14
15
|
const merge = (bp: BlockEditProps["blockProps"], className: string, style?: CSSProperties) => ({ ...bp, className: cx(bp.className, className), style: { ...(bp.style ?? {}), ...style } });
|
|
@@ -26,14 +27,16 @@ export function fieldNameFrom(label: string, taken: string[] = []): string {
|
|
|
26
27
|
|
|
27
28
|
function FormEdit({ block, blockProps, setAttrs, editable }: BlockEditProps) {
|
|
28
29
|
const t = useMsgs("blocks");
|
|
30
|
+
const tp = useMsgs("placeholders");
|
|
29
31
|
const a = block.attrs;
|
|
30
32
|
// Mẫu (pattern) chèn vào chưa có mã: tạo một lần để máy chủ nhận ra form này
|
|
31
33
|
useEffect(() => { if (editable && !a.formId) setAttrs({ formId: newFormId() }); }, [editable, a.formId, setAttrs]);
|
|
32
34
|
return (
|
|
33
|
-
<div {...merge(blockProps,
|
|
35
|
+
<div {...merge(blockProps, formClass(a))} data-form-id={String(a.formId ?? "")}>
|
|
34
36
|
<InnerBlocks parent={block} />
|
|
37
|
+
{editable && <AddBlockButton parentId={block.id} label={tp.addField} className="is-inline" />}
|
|
35
38
|
<div className="ecx-form-actions">
|
|
36
|
-
<span className={blockShell("button", { variant: "primary" })?.className} style={blockShell("button", { variant: "primary" })?.style as CSSProperties} role="presentation">
|
|
39
|
+
<span className={blockShell("button", { variant: "primary" })?.className} style={(({ background: _b, color: _c, ...rest }) => rest)(blockShell("button", { variant: "primary" })?.style as CSSProperties)} role="presentation">
|
|
37
40
|
<RichText blockId={block.id} field="submitText" tagName="span" value={String(a.submitText ?? "")} onChange={(v) => setAttrs({ submitText: v })} placeholder={t.formSubmit} placeholderAlways editable={editable} />
|
|
38
41
|
</span>
|
|
39
42
|
</div>
|
|
@@ -63,7 +66,7 @@ function FieldEdit({ block, blockProps, setAttrs, editable }: BlockEditProps) {
|
|
|
63
66
|
const ph = String(a.placeholder ?? "");
|
|
64
67
|
const check = kind === "checkbox" || kind === "consent";
|
|
65
68
|
return (
|
|
66
|
-
<div {...merge(blockProps, cx("ecx-field", `is-${kind}`, a.width === "half"
|
|
69
|
+
<div {...merge(blockProps, cx("ecx-field", `is-${kind}`, (a.width === "half" || a.width === "third") && `is-${a.width}`, check && "is-check"))}>
|
|
67
70
|
{check ? <label><input type="checkbox" disabled tabIndex={-1} /> <span>{label}{star}</span></label> : <label>{label}{star}</label>}
|
|
68
71
|
{kind === "textarea" ? <textarea disabled tabIndex={-1} placeholder={ph} />
|
|
69
72
|
: kind === "select" ? <select disabled tabIndex={-1}><option>{opts[0] ?? ph ?? "—"}</option></select>
|
package/src/v2/blocks/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BLOCK_ICONS, columnsIcon } from "../ui/block-icons";
|
|
1
2
|
import { CORE_NODES, coreControlsFor, type AttrSpec, type BlockAttrSpec } from "@ecomcx/ecomweb-content";
|
|
2
3
|
import { messages } from "../../i18n";
|
|
3
4
|
import type { V2Labels } from "../labels";
|
|
@@ -26,10 +27,13 @@ function withStyleAttrs(t: BlockType): BlockType["attributes"] {
|
|
|
26
27
|
const ctl = Object.entries(coreControlsFor(t.name));
|
|
27
28
|
if (!ctl.length) return t.attributes;
|
|
28
29
|
const hidden = (s: AttrSpec): BlockAttrSpec => ({ ...s, control: "hidden" });
|
|
29
|
-
|
|
30
|
+
// Thuộc tính gốc (CORE_NODES, ẩn) + thuộc tính khối tự khai đè lên — khối khai vài ô riêng (vd tabs) không làm mất thuộc tính gốc
|
|
31
|
+
// Thuộc tính khối tự khai đứng trước và giữ thứ tự của khối (thứ tự ô ở bảng phải); thuộc tính gốc còn lại thêm vào sau, ẩn
|
|
32
|
+
const base = { ...t.attributes, ...Object.fromEntries(Object.entries(CORE_NODES[t.name]?.attrs ?? {}).filter(([k]) => !t.attributes?.[k]).map(([k, s]) => [k, hidden(s)])) };
|
|
30
33
|
return {
|
|
31
34
|
...base,
|
|
32
|
-
|
|
35
|
+
// thuộc tính khối tự khai (vd tabs.tabsAlign hiện ở Cài đặt) giữ nguyên
|
|
36
|
+
...Object.fromEntries(ctl.filter(([k]) => !base?.[k]).map(([k, s]) => [k, hidden(s.type === "number"
|
|
33
37
|
? { type: "number", min: s.min, max: s.max }
|
|
34
38
|
: { type: "string", ...(s.type === "enum" ? { enum: s.options?.map((o) => (typeof o === "string" ? o : o.value)) } : {}) })])),
|
|
35
39
|
};
|
|
@@ -42,8 +46,10 @@ export function coreBlockTypes(labels: V2Labels): BlockType[] {
|
|
|
42
46
|
const str = (v: unknown) => (typeof v === "string" ? v : undefined);
|
|
43
47
|
const title = key ? String(labels[key]) : str(names[t.name]) ?? t.title;
|
|
44
48
|
// Biến thể đứng riêng (Hàng ngang / Xếp dọc / Lưới) theo ngôn ngữ
|
|
45
|
-
|
|
46
|
-
|
|
49
|
+
// Icon 2 lớp của bộ lõi (block-icons.tsx); biến thể dùng icon riêng nếu có, không thì icon của khối
|
|
50
|
+
const icon = BLOCK_ICONS[t.name] ?? t.icon;
|
|
51
|
+
const variations = t.variations?.map((v) => { const vt = str(names[`${t.name}/${v.name}`]); return { ...v, ...(vt ? { title: vt } : {}), icon: BLOCK_ICONS[v.name] ?? (t.name === "columns" ? columnsIcon(v.name) : undefined) ?? (BLOCK_ICONS[t.name] ? icon : v.icon) }; });
|
|
52
|
+
return { ...t, title, icon, variations, description: t.description ?? blockDescription(t.name, labels.lang), attributes: withStyleAttrs(t) };
|
|
47
53
|
});
|
|
48
54
|
}
|
|
49
55
|
|
|
@@ -23,7 +23,7 @@ export function withoutOverridden(inline: CSSProperties, rawStyle: unknown): CSS
|
|
|
23
23
|
if (style.fontWeight) drop.add("fontWeight");
|
|
24
24
|
if (style.textAlign) drop.add("textAlign");
|
|
25
25
|
if (style.color?.text) drop.add("color");
|
|
26
|
-
if (style.color?.background) { drop.add("background"); drop.add("backgroundColor"); }
|
|
26
|
+
if (style.color?.background || style.gradient || style.textGradient) { drop.add("background"); drop.add("backgroundColor"); }
|
|
27
27
|
if (style.border) SIDES.forEach((x) => drop.add(`border${x}`));
|
|
28
28
|
if (style.radius) drop.add("borderRadius");
|
|
29
29
|
return Object.fromEntries(Object.entries(inline).filter(([k]) => !drop.has(k))) as CSSProperties;
|