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
Remove generate-arg-types from direct dependencies (#2218)
Bogdan Chadkinb6c4911e41c6
diff --git a/apps/builder/app/builder/features/settings-panel/props-section/props-section.stories.tsx b/apps/builder/app/builder/features/settings-panel/props-section/props-section.stories.tsxindex c5589102b5..2d9ddcd331 100644--- a/apps/builder/app/builder/features/settings-panel/props-section/props-section.stories.tsx+++ b/apps/builder/app/builder/features/settings-panel/props-section/props-section.stories.tsx@@ -11,7 +11,7 @@ import {} from "~/shared/nano-states";import { setMockEnv } from "~/shared/env";import type { Instance, Prop } from "@webstudio-is/project-build";-import type { WsComponentPropsMeta } from "@webstudio-is/react-sdk";+import type { PropMeta } from "@webstudio-is/react-sdk";import { textVariants } from "@webstudio-is/design-system";import type { Asset } from "@webstudio-is/asset-uploader";// eslint-disable-next-line import/no-internal-modules@@ -124,8 +124,6 @@ assetsStore.set());-type PropMeta = WsComponentPropsMeta["props"][string];-const textProp = (label?: string, defaultValue?: string): PropMeta => ({type: "string",control: "text",diff --git a/apps/builder/app/builder/features/settings-panel/props-section/use-props-logic.ts b/apps/builder/app/builder/features/settings-panel/props-section/use-props-logic.tsindex 4ecd6f8c92..22e66b0ba9 100644--- a/apps/builder/app/builder/features/settings-panel/props-section/use-props-logic.ts+++ b/apps/builder/app/builder/features/settings-panel/props-section/use-props-logic.ts@@ -2,10 +2,11 @@ import { useState } from "react";import { nanoid } from "nanoid";import type { Instance, Prop } from "@webstudio-is/project-build";import {- showAttribute,+ type PropMeta,type WsComponentPropsMeta,+ showAttribute,} from "@webstudio-is/react-sdk";-import type { PropMeta, PropValue } from "../shared";+import type { PropValue } from "../shared";import { useStore } from "@nanostores/react";import {dataSourceValuesStore,diff --git a/apps/builder/app/builder/features/settings-panel/shared.tsx b/apps/builder/app/builder/features/settings-panel/shared.tsxindex 79244f0463..1c0fbe5686 100644--- a/apps/builder/app/builder/features/settings-panel/shared.tsx+++ b/apps/builder/app/builder/features/settings-panel/shared.tsx@@ -6,7 +6,7 @@ import {useEffect,} from "react";import equal from "fast-deep-equal";-import type { WsComponentPropsMeta } from "@webstudio-is/react-sdk";+import type { PropMeta } from "@webstudio-is/react-sdk";import type { Prop } from "@webstudio-is/project-build";import type { Asset } from "@webstudio-is/asset-uploader";import { SubtractIcon } from "@webstudio-is/icons";@@ -24,8 +24,6 @@ import {} from "@webstudio-is/design-system";import { humanizeString } from "~/shared/string-utils";-export type PropMeta = WsComponentPropsMeta["props"][string];-export type PropValue = Prop extends infer T? T extends { value: unknown; type: unknown }? { value: T["value"]; type: T["type"] }diff --git a/packages/generate-arg-types/package.json b/packages/generate-arg-types/package.jsonindex 792f852aaf..2425830339 100644--- a/packages/generate-arg-types/package.json+++ b/packages/generate-arg-types/package.json@@ -13,9 +13,10 @@"checks": "pnpm typecheck"},"dependencies": {+ "@webstudio-is/html-data": "workspace:^",+ "@webstudio-is/react-sdk": "workspace:^","fast-glob": "^3.2.12","react-docgen-typescript": "^2.2.2",- "@webstudio-is/html-data": "workspace:^","zod": "^3.21.4"},"devDependencies": {@@ -33,11 +34,6 @@"bin": {"generate-arg-types": "./src/cli.ts"},- "exports": {- "source": "./src/index.ts",- "types": "./lib/types/index.d.ts",- "import": "./lib/index.js"- },"license": "AGPL-3.0-or-later","private": false,"sideEffects": falsediff --git a/packages/generate-arg-types/src/arg-types.ts b/packages/generate-arg-types/src/arg-types.tsindex 977bda4f3a..6ad02ec789 100644--- a/packages/generate-arg-types/src/arg-types.ts+++ b/packages/generate-arg-types/src/arg-types.ts@@ -1,5 +1,5 @@import type { PropItem } from "react-docgen-typescript";-import { PropMeta } from "./types";+import { PropMeta } from "@webstudio-is/react-sdk";export type FilterPredicate = (prop: PropItem) => boolean;diff --git a/packages/generate-arg-types/src/cli.ts b/packages/generate-arg-types/src/cli.tsindex be7b0bdb54..3fa4997d1b 100755--- a/packages/generate-arg-types/src/cli.ts+++ b/packages/generate-arg-types/src/cli.ts@@ -101,7 +101,7 @@ type CustomDescriptionsType = {continue;}- let fileContent = `import type { PropMeta } from "@webstudio-is/generate-arg-types";\n`;+ let fileContent = `import type { PropMeta } from "@webstudio-is/react-sdk";\n`;if (componentDocs.length === 1) {const argTypes = propsToArgTypes(diff --git a/packages/generate-arg-types/src/index.ts b/packages/generate-arg-types/src/index.tsdeleted file mode 100644index eea524d655..0000000000--- a/packages/generate-arg-types/src/index.ts+++ /dev/null@@ -1 +0,0 @@-export * from "./types";diff --git a/packages/react-sdk/package.json b/packages/react-sdk/package.jsonindex 5b2a3dd8a1..226bad6e47 100644--- a/packages/react-sdk/package.json+++ b/packages/react-sdk/package.json@@ -8,7 +8,6 @@"scripts": {"dev": "build-package --watch","build": "build-package",- "build:args": "generate-arg-types './src/components/*.tsx ./src/app/custom-components/*.tsx !./src/**/*.stories.tsx !./src/**/*.ws.tsx' && prettier --write \"**/*.props.ts\"","dts": "tsc --project tsconfig.dts.json","typecheck": "tsc","test": "NODE_OPTIONS=--experimental-vm-modules jest --passWithNoTests",@@ -42,7 +41,6 @@"@webstudio-is/css-data": "workspace:^","@webstudio-is/css-engine": "workspace:^","@webstudio-is/fonts": "workspace:^",- "@webstudio-is/generate-arg-types": "workspace:^","@webstudio-is/project-build": "workspace:^","html-tags": "^3.3.1","jsep": "^1.3.8",diff --git a/packages/react-sdk/src/components/component-meta.ts b/packages/react-sdk/src/components/component-meta.tsindex 453bca8bb9..91e9eec836 100644--- a/packages/react-sdk/src/components/component-meta.ts+++ b/packages/react-sdk/src/components/component-meta.ts@@ -1,5 +1,5 @@import { z } from "zod";-import { PropMeta } from "@webstudio-is/generate-arg-types";+import { PropMeta } from "../prop-meta";import type { htmlTags as HtmlTags } from "html-tags";import { EmbedTemplateStyleDecl, WsEmbedTemplate } from "../embed-template";diff --git a/packages/react-sdk/src/index.ts b/packages/react-sdk/src/index.tsindex e773ee6027..9b8eb4c836 100644--- a/packages/react-sdk/src/index.ts+++ b/packages/react-sdk/src/index.ts@@ -3,6 +3,7 @@ export * from "./tree";export * from "./pubsub";export * from "./app";export * from "./components/components-utils";+export { PropMeta } from "./prop-meta";export {type WsComponentPropsMeta,type WsComponentMeta,diff --git a/packages/generate-arg-types/src/types.ts b/packages/react-sdk/src/prop-meta.tssimilarity index 100%rename from packages/generate-arg-types/src/types.tsrename to packages/react-sdk/src/prop-meta.tsdiff --git a/packages/sdk-components-react-radix/package.json b/packages/sdk-components-react-radix/package.jsonindex ab1d8beeff..d3e3c4dcfa 100644--- a/packages/sdk-components-react-radix/package.json+++ b/packages/sdk-components-react-radix/package.json@@ -41,7 +41,7 @@"scripts": {"dev": "build-package --watch","build": "build-package",- "build:args": "generate-arg-types './src/*.tsx !./src/*.stories.tsx !./src/*.ws.tsx' -e asChild -e modal -e defaultValue -e defaultOpen -e defaultChecked && prettier --write \"**/*.props.ts\"",+ "build:args": "NODE_OPTIONS=--conditions=source generate-arg-types './src/*.tsx !./src/*.stories.tsx !./src/*.ws.tsx' -e asChild -e modal -e defaultValue -e defaultOpen -e defaultChecked && prettier --write \"**/*.props.ts\"","dts": "tsc --project tsconfig.dts.json","typecheck": "tsc","checks": "pnpm typecheck",@@ -66,7 +66,6 @@"@radix-ui/react-tabs": "^1.0.4","@radix-ui/react-tooltip": "^1.0.6","@webstudio-is/css-data": "workspace:^",- "@webstudio-is/generate-arg-types": "workspace:^","@webstudio-is/icons": "workspace:^","@webstudio-is/react-sdk": "workspace:^","tailwindcss": "^3.3.3"@@ -75,6 +74,7 @@"@storybook/react": "^7.2.1","@types/react": "^18.2.20","@types/react-dom": "^18.2.7",+ "@webstudio-is/generate-arg-types": "workspace:^","@webstudio-is/scripts": "workspace:^","@webstudio-is/sdk-components-react": "workspace:^","@webstudio-is/storybook-config": "workspace:^",diff --git a/packages/sdk-components-react-radix/src/__generated__/accordion.props.ts b/packages/sdk-components-react-radix/src/__generated__/accordion.props.tsindex 11fde16f74..e4087f242e 100644--- a/packages/sdk-components-react-radix/src/__generated__/accordion.props.ts+++ b/packages/sdk-components-react-radix/src/__generated__/accordion.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const propsAccordion: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react-radix/src/__generated__/button.props.ts b/packages/sdk-components-react-radix/src/__generated__/button.props.tsdeleted file mode 100644index bff4c0cf00..0000000000--- a/packages/sdk-components-react-radix/src/__generated__/button.props.ts+++ /dev/null@@ -1,635 +0,0 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";--export const props: Record<string, PropMeta> = {- about: { required: false, control: "text", type: "string" },- accessKey: {- required: false,- control: "text",- type: "string",- description: "Keyboard shortcut to activate or add focus to the element.",- },- "aria-activedescendant": {- description:- "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",- required: false,- control: "text",- type: "string",- },- "aria-atomic": {- 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.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-autocomplete": {- 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.",- required: false,- control: "select",- type: "string",- options: ["list", "none", "inline", "both"],- },- "aria-braillelabel": {- description:- "Defines a string value that labels the current element, which is intended to be converted into Braille.\n@see aria-label.",- required: false,- control: "text",- type: "string",- },- "aria-brailleroledescription": {- description:- "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.\n@see aria-roledescription.",- required: false,- control: "text",- type: "string",- },- "aria-busy": { required: false, control: "boolean", type: "boolean" },- "aria-checked": {- description:- 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',- required: false,- control: "text",- type: "string",- },- "aria-colcount": {- description:- "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",- required: false,- control: "number",- type: "number",- },- "aria-colindex": {- 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.",- required: false,- control: "number",- type: "number",- },- "aria-colindextext": {- description:- "Defines a human readable text alternative of aria-colindex.\n@see aria-rowindextext.",- required: false,- control: "text",- type: "string",- },- "aria-colspan": {- 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.",- required: false,- control: "number",- type: "number",- },- "aria-controls": {- description:- "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",- required: false,- control: "text",- type: "string",- },- "aria-current": {- description:- "Indicates the element that represents the current item within a container or set of related elements.",- required: false,- control: "text",- type: "string",- },- "aria-describedby": {- description:- "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",- required: false,- control: "text",- type: "string",- },- "aria-description": {- description:- "Defines a string value that describes or annotates the current element.\n@see related aria-describedby.",- required: false,- control: "text",- type: "string",- },- "aria-details": {- description:- "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",- required: false,- control: "text",- type: "string",- },- "aria-disabled": {- 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.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-dropeffect": {- description:- "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",- required: false,- control: "select",- type: "string",- options: ["link", "none", "copy", "execute", "move", "popup"],- },- "aria-errormessage": {- description:- "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",- required: false,- control: "text",- type: "string",- },- "aria-expanded": {- description:- "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-flowto": {- 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.",- required: false,- control: "text",- type: "string",- },- "aria-grabbed": {- description:- 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',- required: false,- control: "boolean",- type: "boolean",- },- "aria-haspopup": {- description:- "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",- required: false,- control: "text",- type: "string",- },- "aria-hidden": {- description:- "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-invalid": {- description:- "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",- required: false,- control: "text",- type: "string",- },- "aria-keyshortcuts": {- description:- "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",- required: false,- control: "text",- type: "string",- },- "aria-label": {- description:- "Provides the accessible name that describes an interactive element if no other accessible name exists, for example in a button that contains an image with no text.",- required: false,- control: "text",- type: "string",- },- "aria-labelledby": {- description:- "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",- required: false,- control: "text",- type: "string",- },- "aria-level": {- description:- "Defines the hierarchical level of an element within a structure.",- required: false,- control: "number",- type: "number",- },- "aria-live": {- 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.",- required: false,- control: "radio",- type: "string",- options: ["off", "assertive", "polite"],- },- "aria-modal": {- description: "Indicates whether an element is modal when displayed.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-multiline": {- description:- "Indicates whether a text box accepts multiple lines of input or only a single line.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-multiselectable": {- description:- "Indicates that the user may select more than one item from the current selectable descendants.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-orientation": {- description:- "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",- required: false,- control: "radio",- type: "string",- options: ["horizontal", "vertical"],- },- "aria-owns": {- 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.",- required: false,- control: "text",- type: "string",- },- "aria-placeholder": {- 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.",- required: false,- control: "text",- type: "string",- },- "aria-posinset": {- 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.",- required: false,- control: "number",- type: "number",- },- "aria-pressed": {- description:- 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',- required: false,- control: "text",- type: "string",- },- "aria-readonly": {- description:- "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-relevant": {- description:- "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",- required: false,- control: "select",- type: "string",- options: [- "text",- "additions",- "additions removals",- "additions text",- "all",- "removals",- "removals additions",- "removals text",- "text additions",- "text removals",- ],- },- "aria-required": {- description:- "Indicates that user input is required on the element before a form may be submitted.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-roledescription": {- description:- "Defines a human-readable, author-localized description for the role of an element.",- required: false,- control: "text",- type: "string",- },- "aria-rowcount": {- description:- "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",- required: false,- control: "number",- type: "number",- },- "aria-rowindex": {- 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.",- required: false,- control: "number",- type: "number",- },- "aria-rowindextext": {- description:- "Defines a human readable text alternative of aria-rowindex.\n@see aria-colindextext.",- required: false,- control: "text",- type: "string",- },- "aria-rowspan": {- 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.",- required: false,- control: "number",- type: "number",- },- "aria-selected": {- description:- 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',- required: false,- control: "boolean",- type: "boolean",- },- "aria-setsize": {- 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.",- required: false,- control: "number",- type: "number",- },- "aria-sort": {- description:- "Indicates if items in a table or grid are sorted in ascending or descending order.",- required: false,- control: "select",- type: "string",- options: ["none", "ascending", "descending", "other"],- },- "aria-valuemax": {- description: "Defines the maximum allowed value for a range widget.",- required: false,- control: "number",- type: "number",- },- "aria-valuemin": {- description: "Defines the minimum allowed value for a range widget.",- required: false,- control: "number",- type: "number",- },- "aria-valuenow": {- description:- "Defines the current value for a range widget.\n@see aria-valuetext.",- required: false,- control: "number",- type: "number",- },- "aria-valuetext": {- description:- "Defines the human readable text alternative of aria-valuenow for a range widget.",- required: false,- control: "text",- type: "string",- },- autoCapitalize: {- required: false,- control: "text",- type: "string",- description:- "Sets whether input is automatically capitalized when entered by user.",- },- autoCorrect: { required: false, control: "text", type: "string" },- autoFocus: {- required: false,- control: "boolean",- type: "boolean",- description:- "Indicates that an element should be focused on page load, or when its parent dialog is displayed.",- },- autoSave: { required: false, control: "text", type: "string" },- className: { required: false, control: "text", type: "string" },- color: {- required: false,- control: "color",- type: "string",- description:- "This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format. Note: This is a legacy attribute. Please use the CSS color property instead.",- },- content: {- required: false,- control: "text",- type: "string",- description:- "A value associated with http-equiv orname depending on the context.",- },- contextMenu: {- required: false,- control: "text",- type: "string",- description:- "Defines the ID of a menu element which willserve as the element's context menu.",- },- datatype: { required: false, control: "text", type: "string" },- defaultChecked: { required: false, control: "boolean", type: "boolean" },- dir: {- required: false,- control: "text",- type: "string",- description:- "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)",- },- disabled: {- required: false,- control: "boolean",- type: "boolean",- description: "Indicates whether the user can interact with the element.",- },- draggable: {- required: false,- control: "boolean",- type: "boolean",- description: "Defines whether the element can be dragged.",- },- form: {- required: false,- control: "text",- type: "string",- description: "Indicates the form that is the owner of the element.",- },- formAction: {- required: false,- control: "text",- type: "string",- description:- "Indicates the action of the element, overriding the action defined inthe form.",- },- formEncType: {- required: false,- control: "text",- type: "string",- description:- 'If the button/input is a submit button (e.g. type="submit"), this attribute sets the encoding type to use during form submission. If this attribute is specified, it overrides theenctype attribute of the button\'s form owner.',- },- formMethod: {- required: false,- control: "text",- type: "string",- description:- 'If the button/input is a submit button (e.g. type="submit"), this attribute sets the submission method to use during form submission (GET, POST, etc.). If this attribute is specified, it overrides the method attribute of the button\'s form owner.',- },- formNoValidate: {- required: false,- control: "boolean",- type: "boolean",- description:- 'If the button/input is a submit button (e.g. type="submit"), this boolean attribute specifies that the form is not to be validatedwhen it is submitted. If this attribute is specified, it overrides thenovalidate attribute of the button\'s form owner.',- },- formTarget: {- required: false,- control: "text",- type: "string",- description:- 'If the button/input is a submit button (e.g. type="submit"), this attribute specifies the browsing context (for example, tab, window, or inline frame) in which to display the response that is received aftersubmitting the form. If this attribute is specified, it overrides thetarget attribute of the button\'s form owner.',- },- hidden: {- required: false,- control: "boolean",- type: "boolean",- description:- "Prevents rendering of given element, while keeping child elements, e.g. script elements, active.",- },- id: {- required: false,- control: "text",- type: "string",- description:- "Often used with CSS to style a specific element. The value of this attribute must be unique.",- },- inputMode: {- 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",- required: false,- control: "select",- type: "string",- options: [- "search",- "text",- "none",- "tel",- "url",- "email",- "numeric",- "decimal",- ],- },- is: {- 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",- required: false,- control: "text",- type: "string",- },- itemID: { required: false, control: "text", type: "string" },- itemProp: { required: false, control: "text", type: "string" },- itemRef: { required: false, control: "text", type: "string" },- itemScope: { required: false, control: "boolean", type: "boolean" },- itemType: { required: false, control: "text", type: "string" },- lang: {- required: false,- control: "text",- type: "string",- description: "Defines the language used in the element.",- },- name: {- required: false,- control: "text",- type: "string",- description:- "This name is important when submitting form data to the server, as it identifies the data associated with the input. When multiple inputs share the same name attribute, they are treated as part of the same group (e.g., radio buttons or checkboxes).",- },- nonce: { required: false, control: "text", type: "string" },- placeholder: {- required: false,- control: "text",- type: "string",- description:- "Provides a hint to the user of what can be entered in the field.",- },- prefix: { required: false, control: "text", type: "string" },- property: { required: false, control: "text", type: "string" },- radioGroup: { required: false, control: "text", type: "string" },- rel: {- required: false,- control: "text",- type: "string",- description:- "Specifies the relationship of the target object to the link object.",- },- resource: { required: false, control: "text", type: "string" },- results: { required: false, control: "number", type: "number" },- rev: { required: false, control: "text", type: "string" },- role: {- required: false,- control: "text",- type: "string",- description:- "Defines an explicit role for an element for use by assistive technologies.",- },- security: { required: false, control: "text", type: "string" },- slot: {- required: false,- control: "text",- type: "string",- description: "Assigns a slot in a shadow DOM shadow tree to an element.",- },- spellCheck: {- required: false,- control: "boolean",- type: "boolean",- description: "Indicates whether spell checking is allowed for the element.",- },- suppressContentEditableWarning: {- required: false,- control: "boolean",- type: "boolean",- },- suppressHydrationWarning: {- required: false,- control: "boolean",- type: "boolean",- },- tabIndex: {- required: false,- control: "number",- type: "number",- description:- "Overrides the browser's default tab order and follows the one specified instead.",- },- title: {- required: false,- control: "text",- type: "string",- description:- "Text to be displayed in a tooltip when hovering over the element.",- },- translate: {- required: false,- control: "radio",- type: "string",- options: ["yes", "no"],- description:- "Specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged.",- },- type: {- required: false,- control: "radio",- type: "string",- options: ["button", "submit", "reset"],- description:- "Defines the behavior of the button, such as submitting a form or resetting form fields.",- },- typeof: { required: false, control: "text", type: "string" },- unselectable: {- required: false,- control: "radio",- type: "string",- options: ["on", "off"],- },- vocab: { required: false, control: "text", type: "string" },-};diff --git a/packages/sdk-components-react-radix/src/__generated__/checkbox.props.ts b/packages/sdk-components-react-radix/src/__generated__/checkbox.props.tsindex 7af0a1bee7..db19f43410 100644--- a/packages/sdk-components-react-radix/src/__generated__/checkbox.props.ts+++ b/packages/sdk-components-react-radix/src/__generated__/checkbox.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const propsCheckbox: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react-radix/src/__generated__/collapsible.props.ts b/packages/sdk-components-react-radix/src/__generated__/collapsible.props.tsindex 9f7b60dbd4..605ee45f05 100644--- a/packages/sdk-components-react-radix/src/__generated__/collapsible.props.ts+++ b/packages/sdk-components-react-radix/src/__generated__/collapsible.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const propsCollapsible: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react-radix/src/__generated__/dialog.props.ts b/packages/sdk-components-react-radix/src/__generated__/dialog.props.tsindex c6eb2b467c..0cd9554da6 100644--- a/packages/sdk-components-react-radix/src/__generated__/dialog.props.ts+++ b/packages/sdk-components-react-radix/src/__generated__/dialog.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const propsDialog: Record<string, PropMeta> = {open: {diff --git a/packages/sdk-components-react-radix/src/__generated__/input.props.ts b/packages/sdk-components-react-radix/src/__generated__/input.props.tsdeleted file mode 100644index 6d2490a9a2..0000000000--- a/packages/sdk-components-react-radix/src/__generated__/input.props.ts+++ /dev/null@@ -1,748 +0,0 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";--export const props: Record<string, PropMeta> = {- about: { required: false, control: "text", type: "string" },- accept: {- required: false,- control: "text",- type: "string",- description: "List of types the server accepts, typically a file type.",- },- accessKey: {- required: false,- control: "text",- type: "string",- description: "Keyboard shortcut to activate or add focus to the element.",- },- alt: {- required: false,- control: "text",- type: "string",- description:- "Text description of the image, which is very important for accessibility and search engine optimization. Screen readers read this description to users so they know what the image means. Alt text is also displayed on the page if the image can't be loaded for some reason.",- },- "aria-activedescendant": {- description:- "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",- required: false,- control: "text",- type: "string",- },- "aria-atomic": {- 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.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-autocomplete": {- 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.",- required: false,- control: "select",- type: "string",- options: ["list", "none", "inline", "both"],- },- "aria-braillelabel": {- description:- "Defines a string value that labels the current element, which is intended to be converted into Braille.\n@see aria-label.",- required: false,- control: "text",- type: "string",- },- "aria-brailleroledescription": {- description:- "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.\n@see aria-roledescription.",- required: false,- control: "text",- type: "string",- },- "aria-busy": { required: false, control: "boolean", type: "boolean" },- "aria-checked": {- description:- 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',- required: false,- control: "text",- type: "string",- },- "aria-colcount": {- description:- "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",- required: false,- control: "number",- type: "number",- },- "aria-colindex": {- 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.",- required: false,- control: "number",- type: "number",- },- "aria-colindextext": {- description:- "Defines a human readable text alternative of aria-colindex.\n@see aria-rowindextext.",- required: false,- control: "text",- type: "string",- },- "aria-colspan": {- 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.",- required: false,- control: "number",- type: "number",- },- "aria-controls": {- description:- "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",- required: false,- control: "text",- type: "string",- },- "aria-current": {- description:- "Indicates the element that represents the current item within a container or set of related elements.",- required: false,- control: "text",- type: "string",- },- "aria-describedby": {- description:- "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",- required: false,- control: "text",- type: "string",- },- "aria-description": {- description:- "Defines a string value that describes or annotates the current element.\n@see related aria-describedby.",- required: false,- control: "text",- type: "string",- },- "aria-details": {- description:- "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",- required: false,- control: "text",- type: "string",- },- "aria-disabled": {- 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.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-dropeffect": {- description:- "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",- required: false,- control: "select",- type: "string",- options: ["link", "none", "copy", "execute", "move", "popup"],- },- "aria-errormessage": {- description:- "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",- required: false,- control: "text",- type: "string",- },- "aria-expanded": {- description:- "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-flowto": {- 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.",- required: false,- control: "text",- type: "string",- },- "aria-grabbed": {- description:- 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',- required: false,- control: "boolean",- type: "boolean",- },- "aria-haspopup": {- description:- "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",- required: false,- control: "text",- type: "string",- },- "aria-hidden": {- description:- "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-invalid": {- description:- "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",- required: false,- control: "text",- type: "string",- },- "aria-keyshortcuts": {- description:- "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",- required: false,- control: "text",- type: "string",- },- "aria-label": {- description:- "Provides the accessible name that describes an interactive element if no other accessible name exists, for example in a button that contains an image with no text.",- required: false,- control: "text",- type: "string",- },- "aria-labelledby": {- description:- "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",- required: false,- control: "text",- type: "string",- },- "aria-level": {- description:- "Defines the hierarchical level of an element within a structure.",- required: false,- control: "number",- type: "number",- },- "aria-live": {- 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.",- required: false,- control: "radio",- type: "string",- options: ["off", "assertive", "polite"],- },- "aria-modal": {- description: "Indicates whether an element is modal when displayed.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-multiline": {- description:- "Indicates whether a text box accepts multiple lines of input or only a single line.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-multiselectable": {- description:- "Indicates that the user may select more than one item from the current selectable descendants.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-orientation": {- description:- "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",- required: false,- control: "radio",- type: "string",- options: ["horizontal", "vertical"],- },- "aria-owns": {- 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.",- required: false,- control: "text",- type: "string",- },- "aria-placeholder": {- 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.",- required: false,- control: "text",- type: "string",- },- "aria-posinset": {- 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.",- required: false,- control: "number",- type: "number",- },- "aria-pressed": {- description:- 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',- required: false,- control: "text",- type: "string",- },- "aria-readonly": {- description:- "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-relevant": {- description:- "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",- required: false,- control: "select",- type: "string",- options: [- "text",- "additions",- "additions removals",- "additions text",- "all",- "removals",- "removals additions",- "removals text",- "text additions",- "text removals",- ],- },- "aria-required": {- description:- "Indicates that user input is required on the element before a form may be submitted.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-roledescription": {- description:- "Defines a human-readable, author-localized description for the role of an element.",- required: false,- control: "text",- type: "string",- },- "aria-rowcount": {- description:- "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",- required: false,- control: "number",- type: "number",- },- "aria-rowindex": {- 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.",- required: false,- control: "number",- type: "number",- },- "aria-rowindextext": {- description:- "Defines a human readable text alternative of aria-rowindex.\n@see aria-colindextext.",- required: false,- control: "text",- type: "string",- },- "aria-rowspan": {- 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.",- required: false,- control: "number",- type: "number",- },- "aria-selected": {- description:- 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',- required: false,- control: "boolean",- type: "boolean",- },- "aria-setsize": {- 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.",- required: false,- control: "number",- type: "number",- },- "aria-sort": {- description:- "Indicates if items in a table or grid are sorted in ascending or descending order.",- required: false,- control: "select",- type: "string",- options: ["none", "ascending", "descending", "other"],- },- "aria-valuemax": {- description: "Defines the maximum allowed value for a range widget.",- required: false,- control: "number",- type: "number",- },- "aria-valuemin": {- description: "Defines the minimum allowed value for a range widget.",- required: false,- control: "number",- type: "number",- },- "aria-valuenow": {- description:- "Defines the current value for a range widget.\n@see aria-valuetext.",- required: false,- control: "number",- type: "number",- },- "aria-valuetext": {- description:- "Defines the human readable text alternative of aria-valuenow for a range widget.",- required: false,- control: "text",- type: "string",- },- autoCapitalize: {- required: false,- control: "text",- type: "string",- description:- "Sets whether input is automatically capitalized when entered by user.",- },- autoComplete: {- required: false,- control: "text",- type: "string",- description:- "Indicates whether controls in this form can by default have their valuesautomatically completed by the browser.",- },- autoCorrect: { required: false, control: "text", type: "string" },- autoFocus: {- required: false,- control: "boolean",- type: "boolean",- description:- "Indicates that an element should be focused on page load, or when its parent dialog is displayed.",- },- autoSave: { required: false, control: "text", type: "string" },- checked: {- required: false,- control: "boolean",- type: "boolean",- description:- "Indicates whether the element should be checked on page load.",- },- className: { required: false, control: "text", type: "string" },- color: {- required: false,- control: "color",- type: "string",- description:- "This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format. Note: This is a legacy attribute. Please use the CSS color property instead.",- },- content: {- required: false,- control: "text",- type: "string",- description:- "A value associated with http-equiv orname depending on the context.",- },- contextMenu: {- required: false,- control: "text",- type: "string",- description:- "Defines the ID of a menu element which willserve as the element's context menu.",- },- datatype: { required: false, control: "text", type: "string" },- defaultChecked: { required: false, control: "boolean", type: "boolean" },- dir: {- required: false,- control: "text",- type: "string",- description:- "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)",- },- disabled: {- required: false,- control: "boolean",- type: "boolean",- description: "Indicates whether the user can interact with the element.",- },- draggable: {- required: false,- control: "boolean",- type: "boolean",- description: "Defines whether the element can be dragged.",- },- enterKeyHint: {- required: false,- control: "select",- type: "string",- options: ["search", "enter", "done", "go", "next", "previous", "send"],- description:- "The enterkeyhint specifies what action label (or icon) to present for the enter key onvirtual keyboards. The attribute can be used with form controls (such asthe value of textarea elements), or in elements in anediting host (e.g., using contenteditable attribute).",- },- form: {- required: false,- control: "text",- type: "string",- description: "Indicates the form that is the owner of the element.",- },- formAction: {- required: false,- control: "text",- type: "string",- description:- "Indicates the action of the element, overriding the action defined inthe form.",- },- formEncType: {- required: false,- control: "text",- type: "string",- description:- 'If the button/input is a submit button (e.g. type="submit"), this attribute sets the encoding type to use during form submission. If this attribute is specified, it overrides theenctype attribute of the button\'s form owner.',- },- formMethod: {- required: false,- control: "text",- type: "string",- description:- 'If the button/input is a submit button (e.g. type="submit"), this attribute sets the submission method to use during form submission (GET, POST, etc.). If this attribute is specified, it overrides the method attribute of the button\'s form owner.',- },- formNoValidate: {- required: false,- control: "boolean",- type: "boolean",- description:- 'If the button/input is a submit button (e.g. type="submit"), this boolean attribute specifies that the form is not to be validatedwhen it is submitted. If this attribute is specified, it overrides thenovalidate attribute of the button\'s form owner.',- },- formTarget: {- required: false,- control: "text",- type: "string",- description:- 'If the button/input is a submit button (e.g. type="submit"), this attribute specifies the browsing context (for example, tab, window, or inline frame) in which to display the response that is received aftersubmitting the form. If this attribute is specified, it overrides thetarget attribute of the button\'s form owner.',- },- height: {- required: false,- control: "number",- type: "number",- description: "Defines the image’s height in pixels.",- },- hidden: {- required: false,- control: "boolean",- type: "boolean",- description:- "Prevents rendering of given element, while keeping child elements, e.g. script elements, active.",- },- id: {- required: false,- control: "text",- type: "string",- description:- "Often used with CSS to style a specific element. The value of this attribute must be unique.",- },- inputMode: {- 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",- required: false,- control: "select",- type: "string",- options: [- "search",- "text",- "email",- "tel",- "url",- "none",- "numeric",- "decimal",- ],- },- is: {- 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",- required: false,- control: "text",- type: "string",- },- itemID: { required: false, control: "text", type: "string" },- itemProp: { required: false, control: "text", type: "string" },- itemRef: { required: false, control: "text", type: "string" },- itemScope: { required: false, control: "boolean", type: "boolean" },- itemType: { required: false, control: "text", type: "string" },- lang: {- required: false,- control: "text",- type: "string",- description: "Defines the language used in the element.",- },- list: {- required: false,- control: "text",- type: "string",- description:- "Identifies a list of pre-defined options to suggest to the user.",- },- max: {- required: false,- control: "number",- type: "number",- description: "Indicates the maximum value allowed.",- },- maxLength: {- required: false,- control: "number",- type: "number",- description:- "Defines the maximum number of characters allowed in the element.",- },- min: {- required: false,- control: "number",- type: "number",- description: "Indicates the minimum value allowed.",- },- minLength: {- required: false,- control: "number",- type: "number",- description:- "Defines the minimum number of characters allowed in the element.",- },- multiple: {- required: false,- control: "boolean",- type: "boolean",- description:- "Indicates whether multiple values can be entered in an input of the type email or file.",- },- name: {- required: false,- control: "text",- type: "string",- description:- "This name is important when submitting form data to the server, as it identifies the data associated with the input. When multiple inputs share the same name attribute, they are treated as part of the same group (e.g., radio buttons or checkboxes).",- },- nonce: { required: false, control: "text", type: "string" },- pattern: {- required: false,- control: "text",- type: "string",- description:- "Defines a regular expression which the element's value will be validated against.",- },- placeholder: {- required: false,- control: "text",- type: "string",- description:- "Provides a hint to the user of what can be entered in the field.",- },- prefix: { required: false, control: "text", type: "string" },- property: { required: false, control: "text", type: "string" },- radioGroup: { required: false, control: "text", type: "string" },- readOnly: {- required: false,- control: "boolean",- type: "boolean",- description: "Indicates whether the element can be edited.",- },- rel: {- required: false,- control: "text",- type: "string",- description:- "Specifies the relationship of the target object to the link object.",- },- required: {- required: false,- control: "boolean",- type: "boolean",- description:- "Indicates whether this form element must be filled before the form can be submitted.",- },- resource: { required: false, control: "text", type: "string" },- results: { required: false, control: "number", type: "number" },- rev: { required: false, control: "text", type: "string" },- role: {- required: false,- control: "text",- type: "string",- description:- "Defines an explicit role for an element for use by assistive technologies.",- },- security: { required: false, control: "text", type: "string" },- size: {- required: false,- control: "number",- type: "number",- description:- "Defines the width of the element (in pixels). If the element'stype attribute is text or password then it's the number of characters.",- },- slot: {- required: false,- control: "text",- type: "string",- description: "Assigns a slot in a shadow DOM shadow tree to an element.",- },- spellCheck: {- required: false,- control: "boolean",- type: "boolean",- description: "Indicates whether spell checking is allowed for the element.",- },- src: {- required: false,- control: "text",- type: "string",- description: "The URL of the embeddable content.",- },- step: { required: false, control: "number", type: "number" },- suppressContentEditableWarning: {- required: false,- control: "boolean",- type: "boolean",- },- suppressHydrationWarning: {- required: false,- control: "boolean",- type: "boolean",- },- tabIndex: {- required: false,- control: "number",- type: "number",- description:- "Overrides the browser's default tab order and follows the one specified instead.",- },- title: {- required: false,- control: "text",- type: "string",- description:- "Text to be displayed in a tooltip when hovering over the element.",- },- translate: {- required: false,- control: "radio",- type: "string",- options: ["yes", "no"],- description:- "Specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged.",- },- typeof: { required: false, control: "text", type: "string" },- unselectable: {- required: false,- control: "radio",- type: "string",- options: ["on", "off"],- },- vocab: { required: false, control: "text", type: "string" },- width: {- required: false,- control: "number",- type: "number",- description: "Defines the image’s width in pixels.",- },-};diff --git a/packages/sdk-components-react-radix/src/__generated__/label.props.ts b/packages/sdk-components-react-radix/src/__generated__/label.props.tsindex 1fcd3524ec..b1637051c0 100644--- a/packages/sdk-components-react-radix/src/__generated__/label.props.ts+++ b/packages/sdk-components-react-radix/src/__generated__/label.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react-radix/src/__generated__/navigation-menu.props.ts b/packages/sdk-components-react-radix/src/__generated__/navigation-menu.props.tsindex 50d787c837..b291987519 100644--- a/packages/sdk-components-react-radix/src/__generated__/navigation-menu.props.ts+++ b/packages/sdk-components-react-radix/src/__generated__/navigation-menu.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const propsNavigationMenu: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react-radix/src/__generated__/popover.props.ts b/packages/sdk-components-react-radix/src/__generated__/popover.props.tsindex c3500cc548..5df7f10d3c 100644--- a/packages/sdk-components-react-radix/src/__generated__/popover.props.ts+++ b/packages/sdk-components-react-radix/src/__generated__/popover.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const propsPopover: Record<string, PropMeta> = {open: {diff --git a/packages/sdk-components-react-radix/src/__generated__/radio-group.props.ts b/packages/sdk-components-react-radix/src/__generated__/radio-group.props.tsindex 47539feeb0..a41c2e7081 100644--- a/packages/sdk-components-react-radix/src/__generated__/radio-group.props.ts+++ b/packages/sdk-components-react-radix/src/__generated__/radio-group.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const propsRadioGroup: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react-radix/src/__generated__/select.props.ts b/packages/sdk-components-react-radix/src/__generated__/select.props.tsindex 9488f34a95..5f76d747f3 100644--- a/packages/sdk-components-react-radix/src/__generated__/select.props.ts+++ b/packages/sdk-components-react-radix/src/__generated__/select.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const propsSelect: Record<string, PropMeta> = {autoComplete: {@@ -1171,7 +1171,13 @@ export const propsSelectValue: Record<string, PropMeta> = {description: "Defines the language used in the element.",},nonce: { required: false, control: "text", type: "string" },- placeholder: { required: false, control: "text", type: "string" },+ placeholder: {+ required: false,+ control: "text",+ type: "string",+ description:+ "Provides a hint to the user of what can be entered in the field.",+ },prefix: { required: false, control: "text", type: "string" },property: { required: false, control: "text", type: "string" },radioGroup: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react-radix/src/__generated__/sheet.props.ts b/packages/sdk-components-react-radix/src/__generated__/sheet.props.tsindex d5c3e9d490..75aea9c87d 100644--- a/packages/sdk-components-react-radix/src/__generated__/sheet.props.ts+++ b/packages/sdk-components-react-radix/src/__generated__/sheet.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const propsSheet: Record<string, PropMeta> = {open: {diff --git a/packages/sdk-components-react-radix/src/__generated__/switch.props.ts b/packages/sdk-components-react-radix/src/__generated__/switch.props.tsindex 404a7374ec..48abac1ea2 100644--- a/packages/sdk-components-react-radix/src/__generated__/switch.props.ts+++ b/packages/sdk-components-react-radix/src/__generated__/switch.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const propsSwitch: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react-radix/src/__generated__/tabs.props.ts b/packages/sdk-components-react-radix/src/__generated__/tabs.props.tsindex 8c21479e0b..7d49d1ce62 100644--- a/packages/sdk-components-react-radix/src/__generated__/tabs.props.ts+++ b/packages/sdk-components-react-radix/src/__generated__/tabs.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const propsTabs: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react-radix/src/__generated__/textarea.props.ts b/packages/sdk-components-react-radix/src/__generated__/textarea.props.tsdeleted file mode 100644index ef9380bf7a..0000000000--- a/packages/sdk-components-react-radix/src/__generated__/textarea.props.ts+++ /dev/null@@ -1,645 +0,0 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";--export const props: Record<string, PropMeta> = {- about: { required: false, control: "text", type: "string" },- accessKey: {- required: false,- control: "text",- type: "string",- description: "Keyboard shortcut to activate or add focus to the element.",- },- "aria-activedescendant": {- description:- "Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",- required: false,- control: "text",- type: "string",- },- "aria-atomic": {- 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.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-autocomplete": {- 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.",- required: false,- control: "select",- type: "string",- options: ["list", "none", "inline", "both"],- },- "aria-braillelabel": {- description:- "Defines a string value that labels the current element, which is intended to be converted into Braille.\n@see aria-label.",- required: false,- control: "text",- type: "string",- },- "aria-brailleroledescription": {- description:- "Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.\n@see aria-roledescription.",- required: false,- control: "text",- type: "string",- },- "aria-busy": { required: false, control: "boolean", type: "boolean" },- "aria-checked": {- description:- 'Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.\n@see aria-pressed\n@see aria-selected.',- required: false,- control: "text",- type: "string",- },- "aria-colcount": {- description:- "Defines the total number of columns in a table, grid, or treegrid.\n@see aria-colindex.",- required: false,- control: "number",- type: "number",- },- "aria-colindex": {- 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.",- required: false,- control: "number",- type: "number",- },- "aria-colindextext": {- description:- "Defines a human readable text alternative of aria-colindex.\n@see aria-rowindextext.",- required: false,- control: "text",- type: "string",- },- "aria-colspan": {- 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.",- required: false,- control: "number",- type: "number",- },- "aria-controls": {- description:- "Identifies the element (or elements) whose contents or presence are controlled by the current element.\n@see aria-owns.",- required: false,- control: "text",- type: "string",- },- "aria-current": {- description:- "Indicates the element that represents the current item within a container or set of related elements.",- required: false,- control: "text",- type: "string",- },- "aria-describedby": {- description:- "Identifies the element (or elements) that describes the object.\n@see aria-labelledby",- required: false,- control: "text",- type: "string",- },- "aria-description": {- description:- "Defines a string value that describes or annotates the current element.\n@see related aria-describedby.",- required: false,- control: "text",- type: "string",- },- "aria-details": {- description:- "Identifies the element that provides a detailed, extended description for the object.\n@see aria-describedby.",- required: false,- control: "text",- type: "string",- },- "aria-disabled": {- 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.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-dropeffect": {- description:- "Indicates what functions can be performed when a dragged object is released on the drop target.\n@deprecated in ARIA 1.1",- required: false,- control: "select",- type: "string",- options: ["link", "none", "copy", "execute", "move", "popup"],- },- "aria-errormessage": {- description:- "Identifies the element that provides an error message for the object.\n@see aria-invalid\n@see aria-describedby.",- required: false,- control: "text",- type: "string",- },- "aria-expanded": {- description:- "Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-flowto": {- 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.",- required: false,- control: "text",- type: "string",- },- "aria-grabbed": {- description:- 'Indicates an element\'s "grabbed" state in a drag-and-drop operation.\n@deprecated in ARIA 1.1',- required: false,- control: "boolean",- type: "boolean",- },- "aria-haspopup": {- description:- "Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",- required: false,- control: "text",- type: "string",- },- "aria-hidden": {- description:- "Indicates whether the element is exposed to an accessibility API.\n@see aria-disabled.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-invalid": {- description:- "Indicates the entered value does not conform to the format expected by the application.\n@see aria-errormessage.",- required: false,- control: "text",- type: "string",- },- "aria-keyshortcuts": {- description:- "Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",- required: false,- control: "text",- type: "string",- },- "aria-label": {- description:- "Provides the accessible name that describes an interactive element if no other accessible name exists, for example in a button that contains an image with no text.",- required: false,- control: "text",- type: "string",- },- "aria-labelledby": {- description:- "Identifies the element (or elements) that labels the current element.\n@see aria-describedby.",- required: false,- control: "text",- type: "string",- },- "aria-level": {- description:- "Defines the hierarchical level of an element within a structure.",- required: false,- control: "number",- type: "number",- },- "aria-live": {- 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.",- required: false,- control: "radio",- type: "string",- options: ["off", "assertive", "polite"],- },- "aria-modal": {- description: "Indicates whether an element is modal when displayed.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-multiline": {- description:- "Indicates whether a text box accepts multiple lines of input or only a single line.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-multiselectable": {- description:- "Indicates that the user may select more than one item from the current selectable descendants.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-orientation": {- description:- "Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",- required: false,- control: "radio",- type: "string",- options: ["horizontal", "vertical"],- },- "aria-owns": {- 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.",- required: false,- control: "text",- type: "string",- },- "aria-placeholder": {- 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.",- required: false,- control: "text",- type: "string",- },- "aria-posinset": {- 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.",- required: false,- control: "number",- type: "number",- },- "aria-pressed": {- description:- 'Indicates the current "pressed" state of toggle buttons.\n@see aria-checked\n@see aria-selected.',- required: false,- control: "text",- type: "string",- },- "aria-readonly": {- description:- "Indicates that the element is not editable, but is otherwise operable.\n@see aria-disabled.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-relevant": {- description:- "Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.\n@see aria-atomic.",- required: false,- control: "select",- type: "string",- options: [- "text",- "additions",- "additions removals",- "additions text",- "all",- "removals",- "removals additions",- "removals text",- "text additions",- "text removals",- ],- },- "aria-required": {- description:- "Indicates that user input is required on the element before a form may be submitted.",- required: false,- control: "boolean",- type: "boolean",- },- "aria-roledescription": {- description:- "Defines a human-readable, author-localized description for the role of an element.",- required: false,- control: "text",- type: "string",- },- "aria-rowcount": {- description:- "Defines the total number of rows in a table, grid, or treegrid.\n@see aria-rowindex.",- required: false,- control: "number",- type: "number",- },- "aria-rowindex": {- 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.",- required: false,- control: "number",- type: "number",- },- "aria-rowindextext": {- description:- "Defines a human readable text alternative of aria-rowindex.\n@see aria-colindextext.",- required: false,- control: "text",- type: "string",- },- "aria-rowspan": {- 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.",- required: false,- control: "number",- type: "number",- },- "aria-selected": {- description:- 'Indicates the current "selected" state of various widgets.\n@see aria-checked\n@see aria-pressed.',- required: false,- control: "boolean",- type: "boolean",- },- "aria-setsize": {- 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.",- required: false,- control: "number",- type: "number",- },- "aria-sort": {- description:- "Indicates if items in a table or grid are sorted in ascending or descending order.",- required: false,- control: "select",- type: "string",- options: ["none", "ascending", "descending", "other"],- },- "aria-valuemax": {- description: "Defines the maximum allowed value for a range widget.",- required: false,- control: "number",- type: "number",- },- "aria-valuemin": {- description: "Defines the minimum allowed value for a range widget.",- required: false,- control: "number",- type: "number",- },- "aria-valuenow": {- description:- "Defines the current value for a range widget.\n@see aria-valuetext.",- required: false,- control: "number",- type: "number",- },- "aria-valuetext": {- description:- "Defines the human readable text alternative of aria-valuenow for a range widget.",- required: false,- control: "text",- type: "string",- },- autoCapitalize: {- required: false,- control: "text",- type: "string",- description:- "Sets whether input is automatically capitalized when entered by user.",- },- autoComplete: {- required: false,- control: "text",- type: "string",- description:- "Indicates whether controls in this form can by default have their valuesautomatically completed by the browser.",- },- autoCorrect: { required: false, control: "text", type: "string" },- autoFocus: {- required: false,- control: "boolean",- type: "boolean",- description:- "Indicates that an element should be focused on page load, or when its parent dialog is displayed.",- },- autoSave: { required: false, control: "text", type: "string" },- className: { required: false, control: "text", type: "string" },- color: {- required: false,- control: "color",- type: "string",- description:- "This attribute sets the text color using either a named color or a color specified in the hexadecimal #RRGGBB format. Note: This is a legacy attribute. Please use the CSS color property instead.",- },- cols: {- required: false,- control: "number",- type: "number",- description: "Defines the number of columns in a textarea.",- },- content: {- required: false,- control: "text",- type: "string",- description:- "A value associated with http-equiv orname depending on the context.",- },- contextMenu: {- required: false,- control: "text",- type: "string",- description:- "Defines the ID of a menu element which willserve as the element's context menu.",- },- datatype: { required: false, control: "text", type: "string" },- defaultChecked: { required: false, control: "boolean", type: "boolean" },- dir: {- required: false,- control: "text",- type: "string",- description:- "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)",- },- dirName: { required: false, control: "text", type: "string" },- disabled: {- required: false,- control: "boolean",- type: "boolean",- description: "Indicates whether the user can interact with the element.",- },- draggable: {- required: false,- control: "boolean",- type: "boolean",- description: "Defines whether the element can be dragged.",- },- form: {- required: false,- control: "text",- type: "string",- description: "Indicates the form that is the owner of the element.",- },- hidden: {- required: false,- control: "boolean",- type: "boolean",- description:- "Prevents rendering of given element, while keeping child elements, e.g. script elements, active.",- },- id: {- required: false,- control: "text",- type: "string",- description:- "Often used with CSS to style a specific element. The value of this attribute must be unique.",- },- inputMode: {- 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",- required: false,- control: "select",- type: "string",- options: [- "search",- "text",- "none",- "tel",- "url",- "email",- "numeric",- "decimal",- ],- },- is: {- 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",- required: false,- control: "text",- type: "string",- },- itemID: { required: false, control: "text", type: "string" },- itemProp: { required: false, control: "text", type: "string" },- itemRef: { required: false, control: "text", type: "string" },- itemScope: { required: false, control: "boolean", type: "boolean" },- itemType: { required: false, control: "text", type: "string" },- lang: {- required: false,- control: "text",- type: "string",- description: "Defines the language used in the element.",- },- maxLength: {- required: false,- control: "number",- type: "number",- description:- "Defines the maximum number of characters allowed in the element.",- },- minLength: {- required: false,- control: "number",- type: "number",- description:- "Defines the minimum number of characters allowed in the element.",- },- name: {- required: false,- control: "text",- type: "string",- description:- "This name is important when submitting form data to the server, as it identifies the data associated with the input. When multiple inputs share the same name attribute, they are treated as part of the same group (e.g., radio buttons or checkboxes).",- },- nonce: { required: false, control: "text", type: "string" },- placeholder: {- required: false,- control: "text",- type: "string",- description:- "Provides a hint to the user of what can be entered in the field.",- },- prefix: { required: false, control: "text", type: "string" },- property: { required: false, control: "text", type: "string" },- radioGroup: { required: false, control: "text", type: "string" },- readOnly: {- required: false,- control: "boolean",- type: "boolean",- description: "Indicates whether the element can be edited.",- },- rel: {- required: false,- control: "text",- type: "string",- description:- "Specifies the relationship of the target object to the link object.",- },- required: {- required: false,- control: "boolean",- type: "boolean",- description:- "Indicates whether this form element must be filled before the form can be submitted.",- },- resource: { required: false, control: "text", type: "string" },- results: { required: false, control: "number", type: "number" },- rev: { required: false, control: "text", type: "string" },- role: {- required: false,- control: "text",- type: "string",- description:- "Defines an explicit role for an element for use by assistive technologies.",- },- rows: {- required: false,- control: "number",- type: "number",- description: "Defines the number of rows in a text area.",- },- security: { required: false, control: "text", type: "string" },- slot: {- required: false,- control: "text",- type: "string",- description: "Assigns a slot in a shadow DOM shadow tree to an element.",- },- spellCheck: {- required: false,- control: "boolean",- type: "boolean",- description: "Indicates whether spell checking is allowed for the element.",- },- suppressContentEditableWarning: {- required: false,- control: "boolean",- type: "boolean",- },- suppressHydrationWarning: {- required: false,- control: "boolean",- type: "boolean",- },- tabIndex: {- required: false,- control: "number",- type: "number",- description:- "Overrides the browser's default tab order and follows the one specified instead.",- },- title: {- required: false,- control: "text",- type: "string",- description:- "Text to be displayed in a tooltip when hovering over the element.",- },- translate: {- required: false,- control: "radio",- type: "string",- options: ["yes", "no"],- description:- "Specify whether an element's attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged.",- },- typeof: { required: false, control: "text", type: "string" },- unselectable: {- required: false,- control: "radio",- type: "string",- options: ["on", "off"],- },- vocab: { required: false, control: "text", type: "string" },- wrap: {- required: false,- control: "text",- type: "string",- description: "Indicates whether the text should be wrapped.",- },-};diff --git a/packages/sdk-components-react-radix/src/__generated__/tooltip.props.ts b/packages/sdk-components-react-radix/src/__generated__/tooltip.props.tsindex 719a31fba3..d54c3be684 100644--- a/packages/sdk-components-react-radix/src/__generated__/tooltip.props.ts+++ b/packages/sdk-components-react-radix/src/__generated__/tooltip.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const propsTooltip: Record<string, PropMeta> = {delayDuration: {diff --git a/packages/sdk-components-react-remix/package.json b/packages/sdk-components-react-remix/package.jsonindex 0a2b8e78c7..ca98489302 100644--- a/packages/sdk-components-react-remix/package.json+++ b/packages/sdk-components-react-remix/package.json@@ -35,7 +35,7 @@"scripts": {"dev": "build-package --watch","build": "build-package",- "build:args": "generate-arg-types './src/*.tsx !./src/**/*.stories.tsx !./src/**/*.ws.tsx' && prettier --write \"**/*.props.ts\"",+ "build:args": "NODE_OPTIONS=--conditions=source generate-arg-types './src/*.tsx !./src/**/*.stories.tsx !./src/**/*.ws.tsx' && prettier --write \"**/*.props.ts\"","dts": "tsc --project tsconfig.dts.json","typecheck": "tsc","checks": "pnpm typecheck"@@ -47,7 +47,6 @@},"dependencies": {"@webstudio-is/form-handlers": "workspace:^",- "@webstudio-is/generate-arg-types": "workspace:^","@webstudio-is/icons": "workspace:^","@webstudio-is/react-sdk": "workspace:^","@webstudio-is/sdk-components-react": "workspace:^"@@ -56,6 +55,7 @@"@remix-run/react": "^1.19.2","@types/react": "^18.2.20","@types/react-dom": "^18.2.7",+ "@webstudio-is/generate-arg-types": "workspace:^","@webstudio-is/scripts": "workspace:^","@webstudio-is/tsconfig": "workspace:^","react": "^18.2.0",diff --git a/packages/sdk-components-react-remix/src/__generated__/form.props.ts b/packages/sdk-components-react-remix/src/__generated__/form.props.tsindex c5cbe16c5f..cccbb26fdf 100644--- a/packages/sdk-components-react-remix/src/__generated__/form.props.ts+++ b/packages/sdk-components-react-remix/src/__generated__/form.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react-remix/src/__generated__/link.props.ts b/packages/sdk-components-react-remix/src/__generated__/link.props.tsindex b9c7ff7431..7a6b4b27c3 100644--- a/packages/sdk-components-react-remix/src/__generated__/link.props.ts+++ b/packages/sdk-components-react-remix/src/__generated__/link.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react-remix/src/__generated__/rich-text-link.props.ts b/packages/sdk-components-react-remix/src/__generated__/rich-text-link.props.tsindex 55b5d30b0f..c835e11839 100644--- a/packages/sdk-components-react-remix/src/__generated__/rich-text-link.props.ts+++ b/packages/sdk-components-react-remix/src/__generated__/rich-text-link.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/package.json b/packages/sdk-components-react/package.jsonindex 775c991e1b..2fdeeb4021 100644--- a/packages/sdk-components-react/package.json+++ b/packages/sdk-components-react/package.json@@ -35,7 +35,7 @@"scripts": {"dev": "build-package --watch","build": "build-package",- "build:args": "generate-arg-types './src/*.tsx !./src/*.stories.tsx !./src/*.ws.tsx' && prettier --write \"**/*.props.ts\"",+ "build:args": "NODE_OPTIONS=--conditions=source generate-arg-types './src/*.tsx !./src/*.stories.tsx !./src/*.ws.tsx' && prettier --write \"**/*.props.ts\"","dts": "tsc --project tsconfig.dts.json","typecheck": "tsc","checks": "pnpm typecheck",@@ -49,7 +49,6 @@"dependencies": {"@react-aria/utils": "^3.19.0","@webstudio-is/css-vars": "workspace:^",- "@webstudio-is/generate-arg-types": "workspace:^","@webstudio-is/icons": "workspace:^","@webstudio-is/image": "workspace:^","@webstudio-is/react-sdk": "workspace:^",@@ -60,6 +59,7 @@"@storybook/react": "^7.2.1","@types/react": "^18.2.20","@types/react-dom": "^18.2.7",+ "@webstudio-is/generate-arg-types": "workspace:^","@webstudio-is/scripts": "workspace:^","@webstudio-is/storybook-config": "workspace:^","@webstudio-is/tsconfig": "workspace:^",diff --git a/packages/sdk-components-react/src/__generated__/blockquote.props.ts b/packages/sdk-components-react/src/__generated__/blockquote.props.tsindex a9f1d6d44e..c56dae12d0 100644--- a/packages/sdk-components-react/src/__generated__/blockquote.props.ts+++ b/packages/sdk-components-react/src/__generated__/blockquote.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/body.props.ts b/packages/sdk-components-react/src/__generated__/body.props.tsindex 2b25b7dc82..0a68935544 100644--- a/packages/sdk-components-react/src/__generated__/body.props.ts+++ b/packages/sdk-components-react/src/__generated__/body.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/bold.props.ts b/packages/sdk-components-react/src/__generated__/bold.props.tsindex 2b25b7dc82..0a68935544 100644--- a/packages/sdk-components-react/src/__generated__/bold.props.ts+++ b/packages/sdk-components-react/src/__generated__/bold.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/box.props.ts b/packages/sdk-components-react/src/__generated__/box.props.tsindex 4fbac1327c..597f238295 100644--- a/packages/sdk-components-react/src/__generated__/box.props.ts+++ b/packages/sdk-components-react/src/__generated__/box.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/button.props.ts b/packages/sdk-components-react/src/__generated__/button.props.tsindex 7b07af309e..fda2a6e9ac 100644--- a/packages/sdk-components-react/src/__generated__/button.props.ts+++ b/packages/sdk-components-react/src/__generated__/button.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/checkbox.props.ts b/packages/sdk-components-react/src/__generated__/checkbox.props.tsindex 1ee979ff95..ccb4eec528 100644--- a/packages/sdk-components-react/src/__generated__/checkbox.props.ts+++ b/packages/sdk-components-react/src/__generated__/checkbox.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/code-text.props.ts b/packages/sdk-components-react/src/__generated__/code-text.props.tsindex 2b25b7dc82..0a68935544 100644--- a/packages/sdk-components-react/src/__generated__/code-text.props.ts+++ b/packages/sdk-components-react/src/__generated__/code-text.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/form.props.ts b/packages/sdk-components-react/src/__generated__/form.props.tsindex 04a3baa991..186f1c3b32 100644--- a/packages/sdk-components-react/src/__generated__/form.props.ts+++ b/packages/sdk-components-react/src/__generated__/form.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/fragment.props.ts b/packages/sdk-components-react/src/__generated__/fragment.props.tsindex 9cf655a4a1..10ee115b62 100644--- a/packages/sdk-components-react/src/__generated__/fragment.props.ts+++ b/packages/sdk-components-react/src/__generated__/fragment.props.ts@@ -1,3 +1,3 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {};diff --git a/packages/sdk-components-react/src/__generated__/heading.props.ts b/packages/sdk-components-react/src/__generated__/heading.props.tsindex 3043f7a1a3..80958e70af 100644--- a/packages/sdk-components-react/src/__generated__/heading.props.ts+++ b/packages/sdk-components-react/src/__generated__/heading.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/html-embed.props.ts b/packages/sdk-components-react/src/__generated__/html-embed.props.tsindex 5a6dd26ee1..6a607e6cdc 100644--- a/packages/sdk-components-react/src/__generated__/html-embed.props.ts+++ b/packages/sdk-components-react/src/__generated__/html-embed.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {code: { required: true, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/image.props.ts b/packages/sdk-components-react/src/__generated__/image.props.tsindex 4a942f6513..e1970d9ad8 100644--- a/packages/sdk-components-react/src/__generated__/image.props.ts+++ b/packages/sdk-components-react/src/__generated__/image.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/input.props.ts b/packages/sdk-components-react/src/__generated__/input.props.tsindex 9169cc0f41..414006cdb1 100644--- a/packages/sdk-components-react/src/__generated__/input.props.ts+++ b/packages/sdk-components-react/src/__generated__/input.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/italic.props.ts b/packages/sdk-components-react/src/__generated__/italic.props.tsindex 2b25b7dc82..0a68935544 100644--- a/packages/sdk-components-react/src/__generated__/italic.props.ts+++ b/packages/sdk-components-react/src/__generated__/italic.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/label.props.ts b/packages/sdk-components-react/src/__generated__/label.props.tsindex 0426233fcf..409b571854 100644--- a/packages/sdk-components-react/src/__generated__/label.props.ts+++ b/packages/sdk-components-react/src/__generated__/label.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/link.props.ts b/packages/sdk-components-react/src/__generated__/link.props.tsindex d591c546ba..6a1253c586 100644--- a/packages/sdk-components-react/src/__generated__/link.props.ts+++ b/packages/sdk-components-react/src/__generated__/link.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/list-item.props.ts b/packages/sdk-components-react/src/__generated__/list-item.props.tsindex 2b25b7dc82..0a68935544 100644--- a/packages/sdk-components-react/src/__generated__/list-item.props.ts+++ b/packages/sdk-components-react/src/__generated__/list-item.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/list.props.ts b/packages/sdk-components-react/src/__generated__/list.props.tsindex aa80bfd3b4..7ecfa40f1f 100644--- a/packages/sdk-components-react/src/__generated__/list.props.ts+++ b/packages/sdk-components-react/src/__generated__/list.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/paragraph.props.ts b/packages/sdk-components-react/src/__generated__/paragraph.props.tsindex 2b25b7dc82..0a68935544 100644--- a/packages/sdk-components-react/src/__generated__/paragraph.props.ts+++ b/packages/sdk-components-react/src/__generated__/paragraph.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/radio-button.props.ts b/packages/sdk-components-react/src/__generated__/radio-button.props.tsindex 1ee979ff95..ccb4eec528 100644--- a/packages/sdk-components-react/src/__generated__/radio-button.props.ts+++ b/packages/sdk-components-react/src/__generated__/radio-button.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/rich-text-link.props.ts b/packages/sdk-components-react/src/__generated__/rich-text-link.props.tsindex d591c546ba..6a1253c586 100644--- a/packages/sdk-components-react/src/__generated__/rich-text-link.props.ts+++ b/packages/sdk-components-react/src/__generated__/rich-text-link.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/separator.props.ts b/packages/sdk-components-react/src/__generated__/separator.props.tsindex 2b25b7dc82..0a68935544 100644--- a/packages/sdk-components-react/src/__generated__/separator.props.ts+++ b/packages/sdk-components-react/src/__generated__/separator.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/slot.props.ts b/packages/sdk-components-react/src/__generated__/slot.props.tsindex 9cf655a4a1..10ee115b62 100644--- a/packages/sdk-components-react/src/__generated__/slot.props.ts+++ b/packages/sdk-components-react/src/__generated__/slot.props.ts@@ -1,3 +1,3 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {};diff --git a/packages/sdk-components-react/src/__generated__/span.props.ts b/packages/sdk-components-react/src/__generated__/span.props.tsindex 2b25b7dc82..0a68935544 100644--- a/packages/sdk-components-react/src/__generated__/span.props.ts+++ b/packages/sdk-components-react/src/__generated__/span.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/subscript.props.ts b/packages/sdk-components-react/src/__generated__/subscript.props.tsindex 2b25b7dc82..0a68935544 100644--- a/packages/sdk-components-react/src/__generated__/subscript.props.ts+++ b/packages/sdk-components-react/src/__generated__/subscript.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/superscript.props.ts b/packages/sdk-components-react/src/__generated__/superscript.props.tsindex 2b25b7dc82..0a68935544 100644--- a/packages/sdk-components-react/src/__generated__/superscript.props.ts+++ b/packages/sdk-components-react/src/__generated__/superscript.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/text.props.ts b/packages/sdk-components-react/src/__generated__/text.props.tsindex e947ae1668..0ad6eac03c 100644--- a/packages/sdk-components-react/src/__generated__/text.props.ts+++ b/packages/sdk-components-react/src/__generated__/text.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/textarea.props.ts b/packages/sdk-components-react/src/__generated__/textarea.props.tsindex ef9380bf7a..b530b43df0 100644--- a/packages/sdk-components-react/src/__generated__/textarea.props.ts+++ b/packages/sdk-components-react/src/__generated__/textarea.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/vimeo-play-button.props.ts b/packages/sdk-components-react/src/__generated__/vimeo-play-button.props.tsindex ffed083767..fef4cb59b1 100644--- a/packages/sdk-components-react/src/__generated__/vimeo-play-button.props.ts+++ b/packages/sdk-components-react/src/__generated__/vimeo-play-button.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/vimeo-preview-image.props.ts b/packages/sdk-components-react/src/__generated__/vimeo-preview-image.props.tsindex 0461665ed6..dd2b829c5a 100644--- a/packages/sdk-components-react/src/__generated__/vimeo-preview-image.props.ts+++ b/packages/sdk-components-react/src/__generated__/vimeo-preview-image.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/vimeo-spinner.props.ts b/packages/sdk-components-react/src/__generated__/vimeo-spinner.props.tsindex 2b25b7dc82..0a68935544 100644--- a/packages/sdk-components-react/src/__generated__/vimeo-spinner.props.ts+++ b/packages/sdk-components-react/src/__generated__/vimeo-spinner.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/packages/sdk-components-react/src/__generated__/vimeo.props.ts b/packages/sdk-components-react/src/__generated__/vimeo.props.tsindex 4b5c1e7bbd..98770b6f22 100644--- a/packages/sdk-components-react/src/__generated__/vimeo.props.ts+++ b/packages/sdk-components-react/src/__generated__/vimeo.props.ts@@ -1,4 +1,4 @@-import type { PropMeta } from "@webstudio-is/generate-arg-types";+import type { PropMeta } from "@webstudio-is/react-sdk";export const props: Record<string, PropMeta> = {about: { required: false, control: "text", type: "string" },diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex c2afd6f0f2..99d6bb19e7 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -942,6 +942,9 @@ importers:'@webstudio-is/html-data':specifier: workspace:^version: link:../html-data+ '@webstudio-is/react-sdk':+ specifier: workspace:^+ version: link:../react-sdkfast-glob:specifier: ^3.2.12version: 3.2.12@@ -1236,9 +1239,6 @@ importers:'@webstudio-is/fonts':specifier: workspace:^version: link:../fonts- '@webstudio-is/generate-arg-types':- specifier: workspace:^- version: link:../generate-arg-types'@webstudio-is/project-build':specifier: workspace:^version: link:../project-build@@ -1334,9 +1334,6 @@ importers:'@webstudio-is/css-vars':specifier: workspace:^version: link:../css-vars- '@webstudio-is/generate-arg-types':- specifier: workspace:^- version: link:../generate-arg-types'@webstudio-is/icons':specifier: workspace:^version: link:../icons@@ -1362,6 +1359,9 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7+ '@webstudio-is/generate-arg-types':+ specifier: workspace:^+ version: link:../generate-arg-types'@webstudio-is/scripts':specifier: workspace:^version: link:../scripts@@ -1422,9 +1422,6 @@ importers:'@webstudio-is/css-data':specifier: workspace:^version: link:../css-data- '@webstudio-is/generate-arg-types':- specifier: workspace:^- version: link:../generate-arg-types'@webstudio-is/icons':specifier: workspace:^version: link:../icons@@ -1444,6 +1441,9 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7+ '@webstudio-is/generate-arg-types':+ specifier: workspace:^+ version: link:../generate-arg-types'@webstudio-is/scripts':specifier: workspace:^version: link:../scripts@@ -1471,9 +1471,6 @@ importers:'@webstudio-is/form-handlers':specifier: workspace:^version: link:../form-handlers- '@webstudio-is/generate-arg-types':- specifier: workspace:^- version: link:../generate-arg-types'@webstudio-is/icons':specifier: workspace:^version: link:../icons@@ -1493,6 +1490,9 @@ importers:'@types/react-dom':specifier: ^18.2.7version: 18.2.7+ '@webstudio-is/generate-arg-types':+ specifier: workspace:^+ version: link:../generate-arg-types'@webstudio-is/scripts':specifier: workspace:^version: link:../scripts