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
use body tag as a root
Oleg Isonen21e9cd6fb034
diff --git a/apps/designer/app/canvas/features/wrapper-component/use-css.tsx b/apps/designer/app/canvas/features/wrapper-component/use-css.tsxindex 6ef597e021..6b762b270a 100644--- a/apps/designer/app/canvas/features/wrapper-component/use-css.tsx+++ b/apps/designer/app/canvas/features/wrapper-component/use-css.tsx@@ -48,14 +48,13 @@ const usePreviewCss = ({ instance, css }: UseCssProps) => {const voidElements ="area, base, br, col, embed, hr, img, input, link, meta, source, track, wbr";-const rootElement = "body > div";const defaultStyle = {"&": {// When double clicking into an element to edit text, it should not select the word.userSelect: "none",},- [`&:not(${voidElements}):not(${rootElement}):empty`]: {+ [`&:not(${voidElements}):empty`]: {outline: "1px dashed #555",outlineOffset: -1,paddingTop: 50,diff --git a/apps/designer/app/designer/features/sidebar-left/panels/components/components.tsx b/apps/designer/app/designer/features/sidebar-left/panels/components/components.tsxindex 4d6560f7bb..4c0b70934c 100644--- a/apps/designer/app/designer/features/sidebar-left/panels/components/components.tsx+++ b/apps/designer/app/designer/features/sidebar-left/panels/components/components.tsx@@ -71,7 +71,7 @@ export const TabContent = ({}: TabContentProps) => {const componentNames = (Object.keys(components) as Array<Instance["component"]>- ).filter((component) => components[component].isInlineOnly === false);+ ).filter((component) => components[component].isListed);const handleDragChange = useCallback((isDragging: boolean) => {diff --git a/apps/designer/app/shared/db/tree.server.ts b/apps/designer/app/shared/db/tree.server.tsindex e28d35b2cf..da500b9155 100644--- a/apps/designer/app/shared/db/tree.server.ts+++ b/apps/designer/app/shared/db/tree.server.ts@@ -6,7 +6,7 @@ import {} from "@webstudio-is/react-sdk";import { applyPatches, type Patch } from "immer";import { prisma } from "@webstudio-is/prisma-client";-import { createInstance } from "~/shared/tree-utils";+import { createInstance, populateInstance } from "~/shared/tree-utils";import { sort } from "~/shared/breakpoints";import { Tree as DbTree } from "@prisma/client";import { Project } from "./project.server";@@ -17,53 +17,8 @@ export const createRootInstance = (breakpoints: Array<Breakpoint>) => {if (defaultBreakpoint === undefined) {throw new Error("A breakpoint with minWidth 0 is required");}- // @todo this should be part of a root component in sdk- const rootConfig: Pick<Instance, "component" | "cssRules"> = {- component: "Box",- cssRules: [- {- breakpoint: defaultBreakpoint.id,- style: {- backgroundColor: {- type: "keyword",- value: "white",- },- fontFamily: {- type: "keyword",- value: "Arial",- },- fontSize: {- type: "unit",- unit: "px",- value: 14,- },- lineHeight: {- type: "unit",- unit: "number",- value: 1.5,- },- color: {- type: "keyword",- value: "#232323",- },- minHeight: {- type: "unit",- unit: "vh",- value: 100,- },- display: {- type: "keyword",- value: "flex",- },- flexDirection: {- type: "keyword",- value: "column",- },- },- },- ],- };- return createInstance(rootConfig);+ const instance = createInstance({ component: "Body" });+ return populateInstance(instance, defaultBreakpoint.id);};export const create = async (root: Instance): Promise<DbTree> => {diff --git a/apps/designer/app/shared/documents/canvas.tsx b/apps/designer/app/shared/documents/canvas.tsxindex b4d239ff39..023a96310c 100644--- a/apps/designer/app/shared/documents/canvas.tsx+++ b/apps/designer/app/shared/documents/canvas.tsx@@ -28,13 +28,15 @@ export const Canvas = ({<Links /><CriticalCss /></head>- <body>- <Outlet />- <ScrollRestoration />- <Env />- <Scripts />- {process.env.NODE_ENV === "development" && <LiveReload />}- </body>+ <Outlet />+ {+ // @todo may need to figure out how to put in script tags inside the body+ // body is rendered by outlet because its part of the user tree+ }+ <ScrollRestoration />+ <Env />+ <Scripts />+ {process.env.NODE_ENV === "development" && <LiveReload />}</html>);};diff --git a/apps/designer/app/shared/tree-utils/populate.ts b/apps/designer/app/shared/tree-utils/populate.tsindex 42b36eecfa..94c865395b 100644--- a/apps/designer/app/shared/tree-utils/populate.ts+++ b/apps/designer/app/shared/tree-utils/populate.ts@@ -1,16 +1,23 @@-import { type Instance, components } from "@webstudio-is/react-sdk";+import {+ type Instance,+ type Breakpoint,+ components,+} from "@webstudio-is/react-sdk";/*** Populate instance with:* - defaultStyles* @todo rewrite using immer*/-export const populateInstance = (instance: Instance): Instance => {+export const populateInstance = (+ instance: Instance,+ breakpoint: Breakpoint["id"] = ""+): Instance => {const populatedInstance = { ...instance };const componentMeta = components[instance.component];if (componentMeta !== undefined && "defaultStyle" in componentMeta) {const cssRule = {- breakpoint: "",+ breakpoint,style: componentMeta.defaultStyle,};populatedInstance.cssRules.push(cssRule);diff --git a/packages/icons/src/body.tsx b/packages/icons/src/body.tsxnew file mode 100644index 0000000000..655fe77672--- /dev/null+++ b/packages/icons/src/body.tsx@@ -0,0 +1,26 @@+import * as React from "react";+import { IconProps } from "./types";++export const BodyIcon = React.forwardRef<SVGSVGElement, IconProps>(+ ({ color = "currentColor", ...props }, forwardedRef) => {+ return (+ <svg+ width="15"+ height="15"+ viewBox="0 0 15 15"+ fill="none"+ xmlns="http://www.w3.org/2000/svg"+ {...props}+ ref={forwardedRef}+ >+ <path+ d="M1 3.96833H14M2.51667 14H12.4833C13.321 14 14 13.321 14 12.4833V2.51667C14 1.67903 13.321 1 12.4833 1H2.51667C1.67903 1 1 1.67903 1 2.51667V12.4833C1 13.321 1.67903 14 2.51667 14Z"+ stroke={color}+ stroke-width="1.15"+ />+ </svg>+ );+ }+);++BodyIcon.displayName = "BodyIcon";diff --git a/packages/icons/src/index.ts b/packages/icons/src/index.tsindex 09c273be06..1443d38433 100644--- a/packages/icons/src/index.ts+++ b/packages/icons/src/index.ts@@ -8,4 +8,5 @@ export * from "./google";export * from "./github";export * from "./devices";export * from "./tablet";+export * from "./body";export * from "./types";diff --git a/packages/react-sdk/src/components/body.props.json b/packages/react-sdk/src/components/body.props.jsonnew file mode 100644index 0000000000..839f40892d--- /dev/null+++ b/packages/react-sdk/src/components/body.props.json@@ -0,0 +1,2204 @@+{+ "slot": {+ "defaultValue": null,+ "description": "",+ "name": "slot",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "style": {+ "defaultValue": null,+ "description": "",+ "name": "style",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "CSSProperties"+ },+ "control": {+ "type": "text"+ }+ },+ "title": {+ "defaultValue": null,+ "description": "",+ "name": "title",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "defaultChecked": {+ "defaultValue": null,+ "description": "",+ "name": "defaultChecked",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "boolean"+ },+ "control": {+ "type": "boolean"+ }+ },+ "defaultValue": {+ "defaultValue": null,+ "description": "",+ "name": "defaultValue",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string | number | readonly string[]"+ },+ "control": {+ "type": "text"+ }+ },+ "suppressContentEditableWarning": {+ "defaultValue": null,+ "description": "",+ "name": "suppressContentEditableWarning",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "boolean"+ },+ "control": {+ "type": "boolean"+ }+ },+ "suppressHydrationWarning": {+ "defaultValue": null,+ "description": "",+ "name": "suppressHydrationWarning",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "boolean"+ },+ "control": {+ "type": "boolean"+ }+ },+ "accessKey": {+ "defaultValue": null,+ "description": "",+ "name": "accessKey",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "className": {+ "defaultValue": null,+ "description": "",+ "name": "className",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "contentEditable": {+ "defaultValue": null,+ "description": "",+ "name": "contentEditable",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "Booleanish | \"inherit\""+ },+ "control": {+ "type": "text"+ }+ },+ "contextMenu": {+ "defaultValue": null,+ "description": "",+ "name": "contextMenu",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "dir": {+ "defaultValue": null,+ "description": "",+ "name": "dir",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "draggable": {+ "defaultValue": null,+ "description": "",+ "name": "draggable",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "Booleanish"+ },+ "control": {+ "type": "boolean"+ }+ },+ "hidden": {+ "defaultValue": null,+ "description": "",+ "name": "hidden",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "boolean"+ },+ "control": {+ "type": "boolean"+ }+ },+ "id": {+ "defaultValue": null,+ "description": "",+ "name": "id",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "lang": {+ "defaultValue": null,+ "description": "",+ "name": "lang",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "placeholder": {+ "defaultValue": null,+ "description": "",+ "name": "placeholder",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "spellCheck": {+ "defaultValue": null,+ "description": "",+ "name": "spellCheck",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "Booleanish"+ },+ "control": {+ "type": "boolean"+ }+ },+ "tabIndex": {+ "defaultValue": null,+ "description": "",+ "name": "tabIndex",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "number"+ },+ "control": {+ "type": "number"+ }+ },+ "translate": {+ "defaultValue": null,+ "description": "",+ "name": "translate",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "enum",+ "raw": "\"yes\" | \"no\"",+ "value": [+ {+ "value": "\"yes\""+ },+ {+ "value": "\"no\""+ }+ ]+ },+ "control": {+ "type": "radio"+ },+ "options": ["yes", "no"]+ },+ "radioGroup": {+ "defaultValue": null,+ "description": "",+ "name": "radioGroup",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "role": {+ "defaultValue": null,+ "description": "",+ "name": "role",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "AriaRole"+ },+ "control": {+ "type": "text"+ }+ },+ "about": {+ "defaultValue": null,+ "description": "",+ "name": "about",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "datatype": {+ "defaultValue": null,+ "description": "",+ "name": "datatype",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "inlist": {+ "defaultValue": null,+ "description": "",+ "name": "inlist",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "any"+ },+ "control": {+ "type": "text"+ }+ },+ "prefix": {+ "defaultValue": null,+ "description": "",+ "name": "prefix",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "property": {+ "defaultValue": null,+ "description": "",+ "name": "property",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "resource": {+ "defaultValue": null,+ "description": "",+ "name": "resource",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "typeof": {+ "defaultValue": null,+ "description": "",+ "name": "typeof",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "vocab": {+ "defaultValue": null,+ "description": "",+ "name": "vocab",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "autoCapitalize": {+ "defaultValue": null,+ "description": "",+ "name": "autoCapitalize",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "autoCorrect": {+ "defaultValue": null,+ "description": "",+ "name": "autoCorrect",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "autoSave": {+ "defaultValue": null,+ "description": "",+ "name": "autoSave",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "color": {+ "description": "",+ "name": "color",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "color"+ }+ },+ "itemProp": {+ "defaultValue": null,+ "description": "",+ "name": "itemProp",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "itemScope": {+ "defaultValue": null,+ "description": "",+ "name": "itemScope",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "boolean"+ },+ "control": {+ "type": "boolean"+ }+ },+ "itemType": {+ "defaultValue": null,+ "description": "",+ "name": "itemType",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "itemID": {+ "defaultValue": null,+ "description": "",+ "name": "itemID",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "itemRef": {+ "defaultValue": null,+ "description": "",+ "name": "itemRef",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "results": {+ "defaultValue": null,+ "description": "",+ "name": "results",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "number"+ },+ "control": {+ "type": "number"+ }+ },+ "security": {+ "defaultValue": null,+ "description": "",+ "name": "security",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "unselectable": {+ "defaultValue": null,+ "description": "",+ "name": "unselectable",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "enum",+ "raw": "\"on\" | \"off\"",+ "value": [+ {+ "value": "\"on\""+ },+ {+ "value": "\"off\""+ }+ ]+ },+ "control": {+ "type": "radio"+ },+ "options": ["on", "off"]+ },+ "inputMode": {+ "defaultValue": null,+ "description": "Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",+ "name": "inputMode",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "enum",+ "raw": "\"text\" | \"none\" | \"search\" | \"tel\" | \"url\" | \"email\" | \"numeric\" | \"decimal\"",+ "value": [+ {+ "value": "\"text\""+ },+ {+ "value": "\"none\""+ },+ {+ "value": "\"search\""+ },+ {+ "value": "\"tel\""+ },+ {+ "value": "\"url\""+ },+ {+ "value": "\"email\""+ },+ {+ "value": "\"numeric\""+ },+ {+ "value": "\"decimal\""+ }+ ]+ },+ "control": {+ "type": "select"+ },+ "options": [+ "text",+ "none",+ "search",+ "tel",+ "url",+ "email",+ "numeric",+ "decimal"+ ]+ },+ "is": {+ "defaultValue": null,+ "description": "Specify that a standard HTML element should behave like a defined custom built-in element\n@see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is",+ "name": "is",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "HTMLAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "aria-activedescendant": {+ "defaultValue": null,+ "description": "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",+ "name": "aria-activedescendant",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "aria-atomic": {+ "defaultValue": null,+ "description": "Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",+ "name": "aria-atomic",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "Booleanish"+ },+ "control": {+ "type": "boolean"+ }+ },+ "aria-autocomplete": {+ "defaultValue": null,+ "description": "Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be\npresented if they are made.",+ "name": "aria-autocomplete",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "enum",+ "raw": "\"list\" | \"none\" | \"inline\" | \"both\"",+ "value": [+ {+ "value": "\"list\""+ },+ {+ "value": "\"none\""+ },+ {+ "value": "\"inline\""+ },+ {+ "value": "\"both\""+ }+ ]+ },+ "control": {+ "type": "radio"+ },+ "options": ["list", "none", "inline", "both"]+ },+ "aria-busy": {+ "defaultValue": null,+ "description": "Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user.",+ "name": "aria-busy",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "Booleanish"+ },+ "control": {+ "type": "boolean"+ }+ },+ "aria-checked": {+ "defaultValue": null,+ "description": "Indicates the current \"checked\" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.",+ "name": "aria-checked",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "boolean | \"true\" | \"false\" | \"mixed\""+ },+ "control": {+ "type": "text"+ }+ },+ "aria-colcount": {+ "defaultValue": null,+ "description": "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",+ "name": "aria-colcount",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "number"+ },+ "control": {+ "type": "number"+ }+ },+ "aria-colindex": {+ "defaultValue": null,+ "description": "Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.\n@see aria-colcount\n@see aria-colspan.",+ "name": "aria-colindex",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "number"+ },+ "control": {+ "type": "number"+ }+ },+ "aria-colspan": {+ "defaultValue": null,+ "description": "Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-colindex\n@see aria-rowspan.",+ "name": "aria-colspan",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "number"+ },+ "control": {+ "type": "number"+ }+ },+ "aria-controls": {+ "defaultValue": null,+ "description": "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",+ "name": "aria-controls",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "aria-current": {+ "defaultValue": null,+ "description": "Indicates the element that represents the current item within a container or set of related elements.",+ "name": "aria-current",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "boolean | \"time\" | \"true\" | \"false\" | \"page\" | \"step\" | \"location\" | \"date\""+ },+ "control": {+ "type": "text"+ }+ },+ "aria-describedby": {+ "defaultValue": null,+ "description": "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",+ "name": "aria-describedby",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "aria-details": {+ "defaultValue": null,+ "description": "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",+ "name": "aria-details",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "aria-disabled": {+ "defaultValue": null,+ "description": "Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.\n@see aria-hidden\n@see aria-readonly.",+ "name": "aria-disabled",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "Booleanish"+ },+ "control": {+ "type": "boolean"+ }+ },+ "aria-dropeffect": {+ "defaultValue": null,+ "description": "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",+ "name": "aria-dropeffect",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "enum",+ "raw": "\"link\" | \"none\" | \"copy\" | \"execute\" | \"move\" | \"popup\"",+ "value": [+ {+ "value": "\"link\""+ },+ {+ "value": "\"none\""+ },+ {+ "value": "\"copy\""+ },+ {+ "value": "\"execute\""+ },+ {+ "value": "\"move\""+ },+ {+ "value": "\"popup\""+ }+ ]+ },+ "control": {+ "type": "select"+ },+ "options": ["link", "none", "copy", "execute", "move", "popup"]+ },+ "aria-errormessage": {+ "defaultValue": null,+ "description": "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",+ "name": "aria-errormessage",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "aria-expanded": {+ "defaultValue": null,+ "description": "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",+ "name": "aria-expanded",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "Booleanish"+ },+ "control": {+ "type": "boolean"+ }+ },+ "aria-flowto": {+ "defaultValue": null,+ "description": "Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,\nallows assistive technology to override the general default of reading in document source order.",+ "name": "aria-flowto",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "aria-grabbed": {+ "defaultValue": null,+ "description": "Indicates an element's \"grabbed\" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1",+ "name": "aria-grabbed",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "Booleanish"+ },+ "control": {+ "type": "boolean"+ }+ },+ "aria-haspopup": {+ "defaultValue": null,+ "description": "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",+ "name": "aria-haspopup",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "boolean | \"dialog\" | \"menu\" | \"true\" | \"false\" | \"grid\" | \"listbox\" | \"tree\""+ },+ "control": {+ "type": "text"+ }+ },+ "aria-hidden": {+ "defaultValue": null,+ "description": "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",+ "name": "aria-hidden",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "Booleanish"+ },+ "control": {+ "type": "boolean"+ }+ },+ "aria-invalid": {+ "defaultValue": null,+ "description": "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",+ "name": "aria-invalid",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "boolean | \"true\" | \"false\" | \"grammar\" | \"spelling\""+ },+ "control": {+ "type": "text"+ }+ },+ "aria-keyshortcuts": {+ "defaultValue": null,+ "description": "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",+ "name": "aria-keyshortcuts",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "aria-label": {+ "defaultValue": null,+ "description": "Defines a string value that labels the current element.\n@see aria-labelledby.",+ "name": "aria-label",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "aria-labelledby": {+ "defaultValue": null,+ "description": "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",+ "name": "aria-labelledby",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "aria-level": {+ "defaultValue": null,+ "description": "Defines the hierarchical level of an element within a structure.",+ "name": "aria-level",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "number"+ },+ "control": {+ "type": "number"+ }+ },+ "aria-live": {+ "defaultValue": null,+ "description": "Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",+ "name": "aria-live",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "enum",+ "raw": "\"off\" | \"assertive\" | \"polite\"",+ "value": [+ {+ "value": "\"off\""+ },+ {+ "value": "\"assertive\""+ },+ {+ "value": "\"polite\""+ }+ ]+ },+ "control": {+ "type": "radio"+ },+ "options": ["off", "assertive", "polite"]+ },+ "aria-modal": {+ "defaultValue": null,+ "description": "Indicates whether an element is modal when displayed.",+ "name": "aria-modal",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "Booleanish"+ },+ "control": {+ "type": "boolean"+ }+ },+ "aria-multiline": {+ "defaultValue": null,+ "description": "Indicates whether a text box accepts multiple lines of input or only a single line.",+ "name": "aria-multiline",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "Booleanish"+ },+ "control": {+ "type": "boolean"+ }+ },+ "aria-multiselectable": {+ "defaultValue": null,+ "description": "Indicates that the user may select more than one item from the current selectable descendants.",+ "name": "aria-multiselectable",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "Booleanish"+ },+ "control": {+ "type": "boolean"+ }+ },+ "aria-orientation": {+ "defaultValue": null,+ "description": "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",+ "name": "aria-orientation",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "enum",+ "raw": "\"horizontal\" | \"vertical\"",+ "value": [+ {+ "value": "\"horizontal\""+ },+ {+ "value": "\"vertical\""+ }+ ]+ },+ "control": {+ "type": "radio"+ },+ "options": ["horizontal", "vertical"]+ },+ "aria-owns": {+ "defaultValue": null,+ "description": "Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship\nbetween DOM elements where the DOM hierarchy cannot be used to represent the relationship.\n@see aria-controls.",+ "name": "aria-owns",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "aria-placeholder": {+ "defaultValue": null,+ "description": "Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.\nA hint could be a sample value or a brief description of the expected format.",+ "name": "aria-placeholder",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "aria-posinset": {+ "defaultValue": null,+ "description": "Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-setsize.",+ "name": "aria-posinset",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "number"+ },+ "control": {+ "type": "number"+ }+ },+ "aria-pressed": {+ "defaultValue": null,+ "description": "Indicates the current \"pressed\" state of toggle buttons.\n@see aria-checked\n@see aria-selected.",+ "name": "aria-pressed",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "boolean | \"true\" | \"false\" | \"mixed\""+ },+ "control": {+ "type": "text"+ }+ },+ "aria-readonly": {+ "defaultValue": null,+ "description": "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",+ "name": "aria-readonly",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "Booleanish"+ },+ "control": {+ "type": "boolean"+ }+ },+ "aria-relevant": {+ "defaultValue": null,+ "description": "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",+ "name": "aria-relevant",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "enum",+ "raw": "\"text\" | \"additions\" | \"additions removals\" | \"additions text\" | \"all\" | \"removals\" | \"removals additions\" | \"removals text\" | \"text additions\" | \"text removals\"",+ "value": [+ {+ "value": "\"text\""+ },+ {+ "value": "\"additions\""+ },+ {+ "value": "\"additions removals\""+ },+ {+ "value": "\"additions text\""+ },+ {+ "value": "\"all\""+ },+ {+ "value": "\"removals\""+ },+ {+ "value": "\"removals additions\""+ },+ {+ "value": "\"removals text\""+ },+ {+ "value": "\"text additions\""+ },+ {+ "value": "\"text removals\""+ }+ ]+ },+ "control": {+ "type": "select"+ },+ "options": [+ "text",+ "additions",+ "additions removals",+ "additions text",+ "all",+ "removals",+ "removals additions",+ "removals text",+ "text additions",+ "text removals"+ ]+ },+ "aria-required": {+ "defaultValue": null,+ "description": "Indicates that user input is required on the element before a form may be submitted.",+ "name": "aria-required",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "Booleanish"+ },+ "control": {+ "type": "boolean"+ }+ },+ "aria-roledescription": {+ "defaultValue": null,+ "description": "Defines a human-readable, author-localized description for the role of an element.",+ "name": "aria-roledescription",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ },+ "aria-rowcount": {+ "defaultValue": null,+ "description": "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",+ "name": "aria-rowcount",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "number"+ },+ "control": {+ "type": "number"+ }+ },+ "aria-rowindex": {+ "defaultValue": null,+ "description": "Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.\n@see aria-rowcount\n@see aria-rowspan.",+ "name": "aria-rowindex",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "number"+ },+ "control": {+ "type": "number"+ }+ },+ "aria-rowspan": {+ "defaultValue": null,+ "description": "Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.\n@see aria-rowindex\n@see aria-colspan.",+ "name": "aria-rowspan",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "number"+ },+ "control": {+ "type": "number"+ }+ },+ "aria-selected": {+ "defaultValue": null,+ "description": "Indicates the current \"selected\" state of various widgets.\n@see aria-checked\n@see aria-pressed.",+ "name": "aria-selected",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "Booleanish"+ },+ "control": {+ "type": "boolean"+ }+ },+ "aria-setsize": {+ "defaultValue": null,+ "description": "Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.\n@see aria-posinset.",+ "name": "aria-setsize",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "number"+ },+ "control": {+ "type": "number"+ }+ },+ "aria-sort": {+ "defaultValue": null,+ "description": "Indicates if items in a table or grid are sorted in ascending or descending order.",+ "name": "aria-sort",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "enum",+ "raw": "\"none\" | \"ascending\" | \"descending\" | \"other\"",+ "value": [+ {+ "value": "\"none\""+ },+ {+ "value": "\"ascending\""+ },+ {+ "value": "\"descending\""+ },+ {+ "value": "\"other\""+ }+ ]+ },+ "control": {+ "type": "radio"+ },+ "options": ["none", "ascending", "descending", "other"]+ },+ "aria-valuemax": {+ "defaultValue": null,+ "description": "Defines the maximum allowed value for a range widget.",+ "name": "aria-valuemax",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "number"+ },+ "control": {+ "type": "number"+ }+ },+ "aria-valuemin": {+ "defaultValue": null,+ "description": "Defines the minimum allowed value for a range widget.",+ "name": "aria-valuemin",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "number"+ },+ "control": {+ "type": "number"+ }+ },+ "aria-valuenow": {+ "defaultValue": null,+ "description": "Defines the current value for a range widget.\n@see aria-valuetext.",+ "name": "aria-valuenow",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "number"+ },+ "control": {+ "type": "number"+ }+ },+ "aria-valuetext": {+ "defaultValue": null,+ "description": "Defines the human readable text alternative of aria-valuenow for a range widget.",+ "name": "aria-valuetext",+ "parent": {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ },+ "declarations": [+ {+ "fileName": "webstudio-designer/node_modules/@types/react/index.d.ts",+ "name": "AriaAttributes"+ }+ ],+ "required": false,+ "type": {+ "name": "string"+ },+ "control": {+ "type": "text"+ }+ }+}diff --git a/packages/react-sdk/src/components/body.stories.tsx b/packages/react-sdk/src/components/body.stories.tsxnew file mode 100644index 0000000000..7251ade094--- /dev/null+++ b/packages/react-sdk/src/components/body.stories.tsx@@ -0,0 +1,14 @@+import React from "react";+import type { ComponentStory, ComponentMeta } from "@storybook/react";+import { Body as BodyPrimitive } from "./body";+import argTypes from "./body.props.json";++export default {+ title: "Components/Body",+ component: BodyPrimitive,+ argTypes,+} as ComponentMeta<typeof BodyPrimitive>;++export const Body: ComponentStory<typeof BodyPrimitive> = (args) => (+ <BodyPrimitive {...args} />+);diff --git a/packages/react-sdk/src/components/body.tsx b/packages/react-sdk/src/components/body.tsxnew file mode 100644index 0000000000..fce7385390--- /dev/null+++ b/packages/react-sdk/src/components/body.tsx@@ -0,0 +1,15 @@+import {+ createElement,+ forwardRef,+ type ElementRef,+ type ComponentProps,+} from "react";++const defaultTag = "body";++export const Body = forwardRef<+ ElementRef<typeof defaultTag>,+ ComponentProps<typeof defaultTag>+>((props, ref) => createElement(defaultTag, { ...props, ref }));++Body.displayName = "Body";diff --git a/packages/react-sdk/src/components/body.ws.tsx b/packages/react-sdk/src/components/body.ws.tsxnew file mode 100644index 0000000000..934bb6932f--- /dev/null+++ b/packages/react-sdk/src/components/body.ws.tsx@@ -0,0 +1,64 @@+import { BodyIcon } from "@webstudio-is/icons";+import type { WsComponentMeta } from "./component-type";+import { Body } from "./body";++const defaultStyle = {+ marginTop: {+ type: "unit",+ unit: "px",+ value: 0,+ },+ marginRight: {+ type: "unit",+ unit: "px",+ value: 0,+ },+ marginBottom: {+ type: "unit",+ unit: "px",+ value: 0,+ },+ marginLeft: {+ type: "unit",+ unit: "px",+ value: 0,+ },+ minHeight: {+ type: "unit",+ unit: "%",+ value: 100,+ },+ backgroundColor: {+ type: "keyword",+ value: "white",+ },+ fontFamily: {+ type: "keyword",+ value: "Arial",+ },+ fontSize: {+ type: "unit",+ unit: "px",+ value: 14,+ },+ lineHeight: {+ type: "unit",+ unit: "number",+ value: 1.5,+ },+ color: {+ type: "keyword",+ value: "#232323",+ },+};++export default {+ Icon: BodyIcon,+ Component: Body,+ canAcceptChild: () => true,+ isContentEditable: false,+ label: "Body",+ isInlineOnly: false,+ isListed: false,+ defaultStyle,+} as WsComponentMeta<typeof Body>;diff --git a/packages/react-sdk/src/components/bold.ws.tsx b/packages/react-sdk/src/components/bold.ws.tsxindex 7f8d429b90..cd0eacce68 100644--- a/packages/react-sdk/src/components/bold.ws.tsx+++ b/packages/react-sdk/src/components/bold.ws.tsx@@ -9,4 +9,5 @@ export default {isContentEditable: false,label: "Bold Text",isInlineOnly: true,+ isListed: false,} as WsComponentMeta<typeof Bold>;diff --git a/packages/react-sdk/src/components/box.ws.ts b/packages/react-sdk/src/components/box.ws.tsindex f0d2a62733..5d1243b0ab 100644--- a/packages/react-sdk/src/components/box.ws.ts+++ b/packages/react-sdk/src/components/box.ws.ts@@ -15,5 +15,7 @@ export default {defaultStyle,canAcceptChild: () => true,isContentEditable: false,+ isInlineOnly: false,+ isListed: true,label: "Box",} as WsComponentMeta<typeof Box>;diff --git a/packages/react-sdk/src/components/button.ws.tsx b/packages/react-sdk/src/components/button.ws.tsxindex 36bb96586a..39e4d59c91 100644--- a/packages/react-sdk/src/components/button.ws.tsx+++ b/packages/react-sdk/src/components/button.ws.tsx@@ -8,6 +8,7 @@ export default {canAcceptChild: () => false,isContentEditable: true,isInlineOnly: false,+ isListed: true,label: "Button",children: ["Button text you can edit"],} as WsComponentMeta<typeof Button>;diff --git a/packages/react-sdk/src/components/component-type.ts b/packages/react-sdk/src/components/component-type.tsindex c02fa97ce1..be9ff1bb6c 100644--- a/packages/react-sdk/src/components/component-type.ts+++ b/packages/react-sdk/src/components/component-type.ts@@ -5,8 +5,13 @@ export type WsComponentMeta<ComponentType> = {Icon: ComponentType;defaultStyle: Style;canAcceptChild: () => boolean;+ // Should children of the component be editable?+ // Should only be possible for components like paragraph, heading etc.isContentEditable: boolean;+ // Components that render inside text editor only.isInlineOnly: boolean;+ // Should be listed in the components list.+ isListed: boolean;label: string;children: Array<string>;};diff --git a/packages/react-sdk/src/components/form.ws.tsx b/packages/react-sdk/src/components/form.ws.tsxindex bb1c7fac4a..313e97d0da 100644--- a/packages/react-sdk/src/components/form.ws.tsx+++ b/packages/react-sdk/src/components/form.ws.tsx@@ -21,5 +21,6 @@ export default {canAcceptChild: () => true,isContentEditable: false,isInlineOnly: false,+ isListed: true,label: "Form",} as WsComponentMeta<typeof Form>;diff --git a/packages/react-sdk/src/components/heading.ws.tsx b/packages/react-sdk/src/components/heading.ws.tsxindex d772747f07..e94f02110c 100644--- a/packages/react-sdk/src/components/heading.ws.tsx+++ b/packages/react-sdk/src/components/heading.ws.tsx@@ -8,5 +8,7 @@ export default {canAcceptChild: () => false,isContentEditable: true,isInlineOnly: false,+ isListed: true,label: "Heading",+ children: ["Heading you can edit"],} as WsComponentMeta<typeof Heading>;diff --git a/packages/react-sdk/src/components/index.ts b/packages/react-sdk/src/components/index.tsindex 87054a080b..68e139f668 100644--- a/packages/react-sdk/src/components/index.ts+++ b/packages/react-sdk/src/components/index.ts@@ -1,3 +1,4 @@+export { default as Body } from "./body.ws";export { default as Box } from "./box.ws";export { default as TextBlock } from "./text-block.ws";export { default as Heading } from "./heading.ws";diff --git a/packages/react-sdk/src/components/input.ws.tsx b/packages/react-sdk/src/components/input.ws.tsxindex 4c3ae8bdc5..1d4351b983 100644--- a/packages/react-sdk/src/components/input.ws.tsx+++ b/packages/react-sdk/src/components/input.ws.tsx@@ -8,5 +8,6 @@ export default {canAcceptChild: () => false,isContentEditable: false,isInlineOnly: false,+ isListed: true,label: "Input",} as WsComponentMeta<typeof Input>;diff --git a/packages/react-sdk/src/components/italic.ws.tsx b/packages/react-sdk/src/components/italic.ws.tsxindex 5cf45dfa5f..78ec0b730b 100644--- a/packages/react-sdk/src/components/italic.ws.tsx+++ b/packages/react-sdk/src/components/italic.ws.tsx@@ -1,12 +1,13 @@-import { FontBoldIcon } from "@webstudio-is/icons";+import { FontItalicIcon } from "@webstudio-is/icons";import type { WsComponentMeta } from "./component-type";import { Italic } from "./italic";export default {- Icon: FontBoldIcon,+ Icon: FontItalicIcon,Component: Italic,canAcceptChild: () => false,isContentEditable: false,isInlineOnly: true,label: "Italic Text",+ isListed: false,} as WsComponentMeta<typeof Italic>;diff --git a/packages/react-sdk/src/components/link.ws.tsx b/packages/react-sdk/src/components/link.ws.tsxindex f202690eb0..c925e053a0 100644--- a/packages/react-sdk/src/components/link.ws.tsx+++ b/packages/react-sdk/src/components/link.ws.tsx@@ -21,6 +21,7 @@ export default {canAcceptChild: () => false,isContentEditable: true,isInlineOnly: false,+ isListed: true,label: "Link",children: ["Link text you can edit"],} as WsComponentMeta<typeof Link>;diff --git a/packages/react-sdk/src/components/meta.ts b/packages/react-sdk/src/components/meta.tsindex f3ffcf6d25..06bda80f11 100644--- a/packages/react-sdk/src/components/meta.ts+++ b/packages/react-sdk/src/components/meta.ts@@ -1,3 +1,4 @@+export { default as Body } from "./body.stories";export { default as Button } from "./button.stories";export { default as Bold } from "./bold.stories";export { default as Box } from "./box.stories";diff --git a/packages/react-sdk/src/components/paragraph.ws.tsx b/packages/react-sdk/src/components/paragraph.ws.tsxindex c2e9210163..feeb98aaf8 100644--- a/packages/react-sdk/src/components/paragraph.ws.tsx+++ b/packages/react-sdk/src/components/paragraph.ws.tsx@@ -8,6 +8,7 @@ export default {canAcceptChild: () => false,isContentEditable: true,isInlineOnly: false,+ isListed: true,label: "Paragraph",children: ["Pragraph you can edit"],} as WsComponentMeta<typeof Paragraph>;diff --git a/packages/react-sdk/src/components/text-block.ws.tsx b/packages/react-sdk/src/components/text-block.ws.tsxindex f09fad9f6e..a37beee322 100644--- a/packages/react-sdk/src/components/text-block.ws.tsx+++ b/packages/react-sdk/src/components/text-block.ws.tsx@@ -17,6 +17,7 @@ export default {canAcceptChild: () => false,isContentEditable: true,isInlineOnly: false,+ isListed: true,label: "Text Block",children: ["Block of text you can edit"],} as WsComponentMeta<typeof TextBlock>;diff --git a/packages/react-sdk/src/tree/root.ts b/packages/react-sdk/src/tree/root.tsindex ab65bacec7..61c08a8e30 100644--- a/packages/react-sdk/src/tree/root.ts+++ b/packages/react-sdk/src/tree/root.ts@@ -15,8 +15,8 @@ export type Data = {};export const globalStyles = globalCss({- body: {- margin: 0,+ html: {+ height: "100%",},});