Skip to content

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.

chore: move transforms section behind a flag (#3810)

Jaya Krishna Namburud56df607f2ac
diff --git a/apps/builder/app/builder/features/style-panel/sections/transforms/transforms.tsx b/apps/builder/app/builder/features/style-panel/sections/transforms/transforms.tsx
index 8aaec74838..a5c9279334 100644
--- a/apps/builder/app/builder/features/style-panel/sections/transforms/transforms.tsx
+++ b/apps/builder/app/builder/features/style-panel/sections/transforms/transforms.tsx
@@ -42,6 +42,7 @@ import { humanizeString } from "~/shared/string-utils";
import { getStyleSource } from "../../shared/style-info";
import { PropertyName } from "../../shared/property-name";
import { getDots } from "../../shared/collapsible-section";
+import { isFeatureEnabled } from "@webstudio-is/feature-flags";
export const transformPanels = [
"translate",
@@ -60,8 +61,13 @@ export const properties = [
] satisfies Array<StyleProperty>;
export const Section = (props: SectionProps) => {
- const { currentStyle, createBatchUpdate } = props;
const [isOpen, setIsOpen] = useState(true);
+
+ if (isFeatureEnabled("transforms") === false) {
+ return;
+ }
+
+ const { currentStyle, createBatchUpdate } = props;
const translateStyleSource = getStyleSource(currentStyle["translate"]);
const scaleStyleSource = getStyleSource(currentStyle["scale"]);
const rotateAndSkewStyleSrouce = getStyleSource(currentStyle["transform"]);
diff --git a/packages/feature-flags/src/flags.ts b/packages/feature-flags/src/flags.ts
index 64c5105bad..f528adf748 100644
--- a/packages/feature-flags/src/flags.ts
+++ b/packages/feature-flags/src/flags.ts
@@ -7,3 +7,4 @@ export const cms = false;
export const cssVars = false;
export const filters = false;
export const xmlElement = false;
+export const transforms = false;