Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
experimental: Paste from webflow 10 (#3619)
Oleg Isonen75063eaaf2c2
diff --git a/apps/builder/app/shared/copy-paste/plugin-webflow/plugin-webflow.test.tsx b/apps/builder/app/shared/copy-paste/plugin-webflow/plugin-webflow.test.tsxindex 33bb631dfd..9852857bdd 100644--- a/apps/builder/app/shared/copy-paste/plugin-webflow/plugin-webflow.test.tsx+++ b/apps/builder/app/shared/copy-paste/plugin-webflow/plugin-webflow.test.tsx@@ -1636,7 +1636,7 @@ describe("Styles", () => {type: "class",name: "is-secondary",comb: "&",- styleLess: "background-color: transparent; ",+ styleLess: "background-color: transparent;",createdBy: "6075409192d886a671499223",},],diff --git a/packages/design-system/src/components/toast.tsx b/packages/design-system/src/components/toast.tsxindex e9c9e234b2..e400be48a8 100644--- a/packages/design-system/src/components/toast.tsx+++ b/packages/design-system/src/components/toast.tsx@@ -104,10 +104,7 @@ export const Toaster = () => {onMouseEnter={startPause}onMouseLeave={endPause}onClick={() => {- // To give a way to dismiss the infinite toast- if (toastData.duration === Number.POSITIVE_INFINITY) {- hotToast.dismiss(toastData.id);- }+ hotToast.remove(toastData.id);}}>{toastData.type === "blank" && (diff --git a/packages/sdk-components-react/src/html-embed.tsx b/packages/sdk-components-react/src/html-embed.tsxindex c5c4ce6076..f08920db68 100644--- a/packages/sdk-components-react/src/html-embed.tsx+++ b/packages/sdk-components-react/src/html-embed.tsx@@ -113,7 +113,7 @@ type ChildProps = {const Placeholder = (props: ChildProps) => {const { code, innerRef, ...rest } = props;return (- <div ref={innerRef} {...rest} style={{ padding: 20 }}>+ <div ref={innerRef} {...rest} style={{ display: "block", padding: 20 }}>{'Open the "Settings" panel to insert HTML code.'}</div>);@@ -160,7 +160,6 @@ const ClientEmbed = (props: ChildProps) => {<div{...rest}ref={mergeRefs(innerRef, containerRef)}- style={{ display: "contents" }}dangerouslySetInnerHTML={{ __html: code ?? "" }}/>);@@ -176,7 +175,6 @@ const ServerEmbed = (props: ChildProps) => {<div{...rest}ref={innerRef}- style={{ display: "contents" }}dangerouslySetInnerHTML={{ __html: code ?? "" }}/>);diff --git a/packages/sdk-components-react/src/html-embed.ws.ts b/packages/sdk-components-react/src/html-embed.ws.tsindex 50c777dffa..61d1ff12fa 100644--- a/packages/sdk-components-react/src/html-embed.ws.ts+++ b/packages/sdk-components-react/src/html-embed.ws.ts@@ -1,17 +1,27 @@import { EmbedIcon } from "@webstudio-is/icons/svg";import type {+ PresetStyle,WsComponentMeta,WsComponentPropsMeta,} from "@webstudio-is/react-sdk";import { props } from "./__generated__/html-embed.props";+const presetStyle = {+ div: [+ {+ property: "display",+ value: { type: "keyword", value: "contents" },+ },+ ],+} satisfies PresetStyle<"div">;+export const meta: WsComponentMeta = {category: "general",type: "embed",label: "HTML Embed",description: "Used to add HTML code to the page, such as an SVG or script.",icon: EmbedIcon,- stylable: false,+ presetStyle,order: 8,};