diff --git a/packages/sdk-components-react-router/src/__generated__/body.props.ts b/packages/sdk-components-react-router/src/__generated__/body.props.ts deleted file mode 100644 index b22b1021ebb6..000000000000 --- a/packages/sdk-components-react-router/src/__generated__/body.props.ts +++ /dev/null @@ -1,562 +0,0 @@ -import type { PropMeta } from "@webstudio-is/react-sdk"; - -export const props: Record = { - 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.", - 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.", - 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.', - required: false, - control: "text", - type: "string", - }, - "aria-colcount": { - description: - "Defines the total number of columns in a table, grid, or treegrid.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-colindextext": { - description: "Defines a human readable text alternative of aria-colindex.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-controls": { - description: - "Identifies the element (or elements) whose contents or presence are controlled by the current element.", - 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.", - required: false, - control: "text", - type: "string", - }, - "aria-description": { - description: - "Defines a string value that describes or annotates the current element.", - required: false, - control: "text", - type: "string", - }, - "aria-details": { - description: - "Identifies the element that provides a detailed, extended description for the object.", - 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.", - 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.", - 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.", - 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.', - 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.", - required: false, - control: "boolean", - type: "boolean", - }, - "aria-invalid": { - description: - "Indicates the entered value does not conform to the format expected by the application.", - 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.", - 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.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-pressed": { - description: 'Indicates the current "pressed" state of toggle buttons.', - required: false, - control: "text", - type: "string", - }, - "aria-readonly": { - description: - "Indicates that the element is not editable, but is otherwise operable.", - 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.", - 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.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-rowindextext": { - description: "Defines a human readable text alternative of aria-rowindex.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-selected": { - description: 'Indicates the current "selected" state of various widgets.', - 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.", - 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.", - 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" }, - defaultValue: { required: false, control: "text", type: "string" }, - dir: { - required: false, - control: "text", - type: "string", - description: - "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)", - }, - draggable: { - required: false, - control: "boolean", - type: "boolean", - description: "Defines whether the element can be dragged.", - }, - 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", - 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", - 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.", - }, - nonce: { required: false, control: "text", type: "string" }, - 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.", - }, - 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-router/src/__generated__/link.props.ts b/packages/sdk-components-react-router/src/__generated__/link.props.ts deleted file mode 100644 index 6dafc3f84738..000000000000 --- a/packages/sdk-components-react-router/src/__generated__/link.props.ts +++ /dev/null @@ -1,637 +0,0 @@ -import type { PropMeta } from "@webstudio-is/react-sdk"; - -export const props: Record = { - 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.", - 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.", - 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.', - required: false, - control: "text", - type: "string", - }, - "aria-colcount": { - description: - "Defines the total number of columns in a table, grid, or treegrid.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-colindextext": { - description: "Defines a human readable text alternative of aria-colindex.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-controls": { - description: - "Identifies the element (or elements) whose contents or presence are controlled by the current element.", - 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.", - required: false, - control: "text", - type: "string", - }, - "aria-description": { - description: - "Defines a string value that describes or annotates the current element.", - required: false, - control: "text", - type: "string", - }, - "aria-details": { - description: - "Identifies the element that provides a detailed, extended description for the object.", - 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.", - 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.", - 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.", - 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.', - 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.", - required: false, - control: "boolean", - type: "boolean", - }, - "aria-invalid": { - description: - "Indicates the entered value does not conform to the format expected by the application.", - 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.", - 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.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-pressed": { - description: 'Indicates the current "pressed" state of toggle buttons.', - required: false, - control: "text", - type: "string", - }, - "aria-readonly": { - description: - "Indicates that the element is not editable, but is otherwise operable.", - 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.", - 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.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-rowindextext": { - description: "Defines a human readable text alternative of aria-rowindex.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-selected": { - description: 'Indicates the current "selected" state of various widgets.', - 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.", - 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.", - 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" }, - defaultValue: { required: false, control: "text", type: "string" }, - dir: { - required: false, - control: "text", - type: "string", - description: - "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)", - }, - download: { - required: false, - control: "boolean", - type: "boolean", - description: - "Indicates that the hyperlink is to be used for downloading a resource.", - }, - draggable: { - required: false, - control: "boolean", - type: "boolean", - description: "Defines whether the element can be dragged.", - }, - hidden: { - required: false, - control: "boolean", - type: "boolean", - description: - "Prevents rendering of given element, while keeping child elements, e.g. script elements, active.", - }, - href: { - required: false, - control: "text", - type: "string", - description: "The URL of a linked resource.", - }, - hrefLang: { - required: false, - control: "text", - type: "string", - description: "Specifies the language of the linked resource.", - }, - 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", - 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", - 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.", - }, - media: { - required: false, - control: "text", - type: "string", - description: - "Specifies a hint of the media for which the linked resource was designed.", - }, - nonce: { required: false, control: "text", type: "string" }, - ping: { - required: false, - control: "text", - type: "string", - description: - "The ping attribute specifies a space-separated list of URLs to be notified if a user follows the hyperlink.", - }, - prefetch: { - required: false, - control: "select", - type: "string", - options: ["none", "intent", "render", "viewport"], - description: - "Controls when and if the link prefetches the resources that the next page needs to make loading faster. “Intent” will prefetch when the link is hovered or focused. “Render” will prefetch when the link is rendered. “Viewport” will prefetch when the link is in the viewport. “None” will not prefetch.", - }, - prefix: { required: false, control: "text", type: "string" }, - preventScrollReset: { required: false, control: "boolean", type: "boolean" }, - property: { required: false, control: "text", type: "string" }, - radioGroup: { required: false, control: "text", type: "string" }, - referrerPolicy: { - required: false, - control: "select", - type: "string", - options: [ - "", - "no-referrer", - "no-referrer-when-downgrade", - "origin", - "origin-when-cross-origin", - "same-origin", - "strict-origin", - "strict-origin-when-cross-origin", - "unsafe-url", - ], - description: "Specifies which referrer is sent when fetching the resource.", - }, - rel: { - required: false, - control: "text", - type: "string", - description: - "Specifies the relationship of the target object to the link object.", - }, - reloadDocument: { required: false, control: "boolean", type: "boolean" }, - replace: { required: false, control: "boolean", type: "boolean" }, - 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.", - }, - target: { - required: false, - control: "select", - type: "string", - options: ["_self", "_blank", "_parent", "_top"], - description: - "Specifies where to open the linked document (in the case of an element) or where to display the response received (in the case of a
element)", - }, - 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: "text", - type: "string", - description: "Defines the type of the element.", - }, - 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-router/src/__generated__/remix-form.props.ts b/packages/sdk-components-react-router/src/__generated__/remix-form.props.ts deleted file mode 100644 index 52328dbed6cd..000000000000 --- a/packages/sdk-components-react-router/src/__generated__/remix-form.props.ts +++ /dev/null @@ -1,622 +0,0 @@ -import type { PropMeta } from "@webstudio-is/react-sdk"; - -export const props: Record = { - about: { required: false, control: "text", type: "string" }, - acceptCharset: { - required: false, - control: "text", - type: "string", - description: "List of supported charsets.", - }, - accessKey: { - required: false, - control: "text", - type: "string", - description: "Keyboard shortcut to activate or add focus to the element.", - }, - action: { - required: false, - control: "text", - type: "string", - description: - "The URI of a program that processes the information submitted via the form.", - }, - "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.", - 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.", - 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.', - required: false, - control: "text", - type: "string", - }, - "aria-colcount": { - description: - "Defines the total number of columns in a table, grid, or treegrid.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-colindextext": { - description: "Defines a human readable text alternative of aria-colindex.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-controls": { - description: - "Identifies the element (or elements) whose contents or presence are controlled by the current element.", - 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.", - required: false, - control: "text", - type: "string", - }, - "aria-description": { - description: - "Defines a string value that describes or annotates the current element.", - required: false, - control: "text", - type: "string", - }, - "aria-details": { - description: - "Identifies the element that provides a detailed, extended description for the object.", - 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.", - 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.", - 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.", - 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.', - 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.", - required: false, - control: "boolean", - type: "boolean", - }, - "aria-invalid": { - description: - "Indicates the entered value does not conform to the format expected by the application.", - 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.", - 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.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-pressed": { - description: 'Indicates the current "pressed" state of toggle buttons.', - required: false, - control: "text", - type: "string", - }, - "aria-readonly": { - description: - "Indicates that the element is not editable, but is otherwise operable.", - 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.", - 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.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-rowindextext": { - description: "Defines a human readable text alternative of aria-rowindex.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-selected": { - description: 'Indicates the current "selected" state of various widgets.', - 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.", - 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.", - 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.", - }, - 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" }, - defaultValue: { required: false, control: "text", type: "string" }, - dir: { - required: false, - control: "text", - type: "string", - description: - "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)", - }, - draggable: { - required: false, - control: "boolean", - type: "boolean", - description: "Defines whether the element can be dragged.", - }, - encType: { - description: "The encoding type to use for the form submission.", - required: false, - control: "radio", - type: "string", - options: [ - "application/x-www-form-urlencoded", - "multipart/form-data", - "text/plain", - ], - }, - 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", - 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", - 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.", - }, - method: { - required: false, - control: "select", - type: "string", - options: ["get", "post", "put", "patch", "delete"], - description: - "Defines which HTTP method to use when submitting the form. Can be GET (default) or POST.", - }, - 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" }, - noValidate: { - required: false, - control: "boolean", - type: "boolean", - description: - "This attribute indicates that the form shouldn't be validated when submitted.", - }, - 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.", - }, - target: { - required: false, - control: "text", - type: "string", - description: - "Specifies where to open the linked document (in the case of an element) or where to display the response received (in the case of a element)", - }, - 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" }, -}; diff --git a/packages/sdk-components-react-router/src/__generated__/rich-text-link.props.ts b/packages/sdk-components-react-router/src/__generated__/rich-text-link.props.ts deleted file mode 100644 index 56101b5b54c0..000000000000 --- a/packages/sdk-components-react-router/src/__generated__/rich-text-link.props.ts +++ /dev/null @@ -1,635 +0,0 @@ -import type { PropMeta } from "@webstudio-is/react-sdk"; - -export const props: Record = { - 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.", - 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.", - 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.', - required: false, - control: "text", - type: "string", - }, - "aria-colcount": { - description: - "Defines the total number of columns in a table, grid, or treegrid.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-colindextext": { - description: "Defines a human readable text alternative of aria-colindex.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-controls": { - description: - "Identifies the element (or elements) whose contents or presence are controlled by the current element.", - 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.", - required: false, - control: "text", - type: "string", - }, - "aria-description": { - description: - "Defines a string value that describes or annotates the current element.", - required: false, - control: "text", - type: "string", - }, - "aria-details": { - description: - "Identifies the element that provides a detailed, extended description for the object.", - 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.", - 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.", - 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.", - 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.', - 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.", - required: false, - control: "boolean", - type: "boolean", - }, - "aria-invalid": { - description: - "Indicates the entered value does not conform to the format expected by the application.", - 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.", - 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.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-pressed": { - description: 'Indicates the current "pressed" state of toggle buttons.', - required: false, - control: "text", - type: "string", - }, - "aria-readonly": { - description: - "Indicates that the element is not editable, but is otherwise operable.", - 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.", - 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.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-rowindextext": { - description: "Defines a human readable text alternative of aria-rowindex.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-selected": { - description: 'Indicates the current "selected" state of various widgets.', - 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.", - 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.", - 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" }, - defaultValue: { required: false, control: "text", type: "string" }, - dir: { - required: false, - control: "text", - type: "string", - description: - "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)", - }, - download: { - required: false, - control: "boolean", - type: "boolean", - description: - "Indicates that the hyperlink is to be used for downloading a resource.", - }, - draggable: { - required: false, - control: "boolean", - type: "boolean", - description: "Defines whether the element can be dragged.", - }, - hidden: { - required: false, - control: "boolean", - type: "boolean", - description: - "Prevents rendering of given element, while keeping child elements, e.g. script elements, active.", - }, - href: { - required: false, - control: "text", - type: "string", - description: "The URL of a linked resource.", - }, - hrefLang: { - required: false, - control: "text", - type: "string", - description: "Specifies the language of the linked resource.", - }, - 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", - 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", - 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.", - }, - media: { - required: false, - control: "text", - type: "string", - description: - "Specifies a hint of the media for which the linked resource was designed.", - }, - nonce: { required: false, control: "text", type: "string" }, - ping: { - required: false, - control: "text", - type: "string", - description: - "The ping attribute specifies a space-separated list of URLs to be notified if a user follows the hyperlink.", - }, - prefetch: { - required: false, - control: "select", - type: "string", - options: ["none", "intent", "render", "viewport"], - }, - prefix: { required: false, control: "text", type: "string" }, - preventScrollReset: { required: false, control: "boolean", type: "boolean" }, - property: { required: false, control: "text", type: "string" }, - radioGroup: { required: false, control: "text", type: "string" }, - referrerPolicy: { - required: false, - control: "select", - type: "string", - options: [ - "", - "no-referrer", - "no-referrer-when-downgrade", - "origin", - "origin-when-cross-origin", - "same-origin", - "strict-origin", - "strict-origin-when-cross-origin", - "unsafe-url", - ], - description: "Specifies which referrer is sent when fetching the resource.", - }, - rel: { - required: false, - control: "text", - type: "string", - description: - "Specifies the relationship of the target object to the link object.", - }, - reloadDocument: { required: false, control: "boolean", type: "boolean" }, - replace: { required: false, control: "boolean", type: "boolean" }, - 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.", - }, - target: { - required: false, - control: "select", - type: "string", - options: ["_self", "_blank", "_parent", "_top"], - description: - "Specifies where to open the linked document (in the case of an element) or where to display the response received (in the case of a element)", - }, - 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: "text", - type: "string", - description: "Defines the type of the element.", - }, - 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-router/src/__generated__/webhook-form.props.ts b/packages/sdk-components-react-router/src/__generated__/webhook-form.props.ts deleted file mode 100644 index 4997f1c46003..000000000000 --- a/packages/sdk-components-react-router/src/__generated__/webhook-form.props.ts +++ /dev/null @@ -1,631 +0,0 @@ -import type { PropMeta } from "@webstudio-is/react-sdk"; - -export const props: Record = { - about: { required: false, control: "text", type: "string" }, - acceptCharset: { - required: false, - control: "text", - type: "string", - description: "List of supported charsets.", - }, - accessKey: { - required: false, - control: "text", - type: "string", - description: "Keyboard shortcut to activate or add focus to the element.", - }, - action: { - required: false, - control: "text", - type: "string", - description: - "The URI of a program that processes the information submitted via the form.", - }, - "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.", - 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.", - 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.', - required: false, - control: "text", - type: "string", - }, - "aria-colcount": { - description: - "Defines the total number of columns in a table, grid, or treegrid.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-colindextext": { - description: "Defines a human readable text alternative of aria-colindex.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-controls": { - description: - "Identifies the element (or elements) whose contents or presence are controlled by the current element.", - 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.", - required: false, - control: "text", - type: "string", - }, - "aria-description": { - description: - "Defines a string value that describes or annotates the current element.", - required: false, - control: "text", - type: "string", - }, - "aria-details": { - description: - "Identifies the element that provides a detailed, extended description for the object.", - 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.", - 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.", - 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.", - 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.', - 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.", - required: false, - control: "boolean", - type: "boolean", - }, - "aria-invalid": { - description: - "Indicates the entered value does not conform to the format expected by the application.", - 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.", - 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.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-pressed": { - description: 'Indicates the current "pressed" state of toggle buttons.', - required: false, - control: "text", - type: "string", - }, - "aria-readonly": { - description: - "Indicates that the element is not editable, but is otherwise operable.", - 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.", - 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.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-rowindextext": { - description: "Defines a human readable text alternative of aria-rowindex.", - 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.", - required: false, - control: "number", - type: "number", - }, - "aria-selected": { - description: 'Indicates the current "selected" state of various widgets.', - 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.", - 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.", - 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.", - }, - 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" }, - defaultValue: { required: false, control: "text", type: "string" }, - dir: { - required: false, - control: "text", - type: "string", - description: - "Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)", - }, - draggable: { - required: false, - control: "boolean", - type: "boolean", - description: "Defines whether the element can be dragged.", - }, - encType: { - required: false, - control: "radio", - type: "string", - options: [ - "application/x-www-form-urlencoded", - "multipart/form-data", - "text/plain", - ], - description: - "Defines the content type of the form data when themethod is POST.", - }, - 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", - 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", - 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.", - }, - method: { - required: false, - control: "text", - type: "string", - description: - "Defines which HTTP method to use when submitting the form. Can be GET (default) or POST.", - }, - 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" }, - noValidate: { - required: false, - control: "boolean", - type: "boolean", - description: - "This attribute indicates that the form shouldn't be validated when submitted.", - }, - 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.", - }, - state: { - description: - "Use this property to reveal the Success and Error states on the canvas so they can be styled. The Initial state is displayed when the page first opens. The Success and Error states are displayed depending on whether the Form submits successfully or unsuccessfully.", - required: false, - control: "radio", - type: "string", - defaultValue: "initial", - options: ["initial", "success", "error"], - }, - 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.", - }, - target: { - required: false, - control: "text", - type: "string", - description: - "Specifies where to open the linked document (in the case of an element) or where to display the response received (in the case of a element)", - }, - 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" }, -}; diff --git a/packages/sdk-components-react-router/src/body.ws.ts b/packages/sdk-components-react-router/src/body.ws.ts deleted file mode 100644 index cf6b7d780279..000000000000 --- a/packages/sdk-components-react-router/src/body.ws.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { Body as meta } from "@webstudio-is/sdk-components-react/metas"; -export { Body as propsMeta } from "@webstudio-is/sdk-components-react/props"; diff --git a/packages/sdk-components-react-router/src/link.ws.ts b/packages/sdk-components-react-router/src/link.ws.ts deleted file mode 100644 index 191649790af7..000000000000 --- a/packages/sdk-components-react-router/src/link.ws.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { WsComponentPropsMeta } from "@webstudio-is/react-sdk"; -import { props } from "./__generated__/link.props"; - -export { Link as meta } from "@webstudio-is/sdk-components-react/metas"; - -export const propsMeta: WsComponentPropsMeta = { - props: { - ...props, - href: { - type: "string", - control: "url", - required: false, - }, - }, - initialProps: ["id", "className", "href", "target", "prefetch", "download"], -}; diff --git a/packages/sdk-components-react-router/src/metas.ts b/packages/sdk-components-react-router/src/metas.ts index 66eaae9aa15c..e56e6b28f9fb 100644 --- a/packages/sdk-components-react-router/src/metas.ts +++ b/packages/sdk-components-react-router/src/metas.ts @@ -1,5 +1,7 @@ -export { meta as Body } from "./body.ws"; -export { meta as Link } from "./link.ws"; -export { meta as RichTextLink } from "./rich-text-link.ws"; -export { meta as Form } from "./webhook-form.ws"; -export { meta as RemixForm } from "./remix-form.ws"; +export { + Body, + Link, + RichTextLink, + Form, + RemixForm, +} from "@webstudio-is/sdk-components-react"; diff --git a/packages/sdk-components-react-router/src/props.ts b/packages/sdk-components-react-router/src/props.ts index d76dfbb7a09c..e69de29bb2d1 100644 --- a/packages/sdk-components-react-router/src/props.ts +++ b/packages/sdk-components-react-router/src/props.ts @@ -1,5 +0,0 @@ -export { propsMeta as Body } from "./body.ws"; -export { propsMeta as Link } from "./link.ws"; -export { propsMeta as RichTextLink } from "./rich-text-link.ws"; -export { propsMeta as Form } from "./webhook-form.ws"; -export { propsMeta as RemixForm } from "./remix-form.ws"; diff --git a/packages/sdk-components-react-router/src/remix-form.ws.ts b/packages/sdk-components-react-router/src/remix-form.ws.ts deleted file mode 100644 index 89435faec0b9..000000000000 --- a/packages/sdk-components-react-router/src/remix-form.ws.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { Form as meta } from "@webstudio-is/sdk-components-react/metas"; -export { Form as propsMeta } from "@webstudio-is/sdk-components-react/props"; diff --git a/packages/sdk-components-react-router/src/rich-text-link.ws.ts b/packages/sdk-components-react-router/src/rich-text-link.ws.ts deleted file mode 100644 index 3c312880cafa..000000000000 --- a/packages/sdk-components-react-router/src/rich-text-link.ws.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { WsComponentPropsMeta } from "@webstudio-is/react-sdk"; -import { propsMeta as linkPropsMeta } from "./link.ws"; - -export { RichTextLink as meta } from "@webstudio-is/sdk-components-react/metas"; - -export const propsMeta: WsComponentPropsMeta = linkPropsMeta; diff --git a/packages/sdk-components-react-router/src/webhook-form.ws.ts b/packages/sdk-components-react-router/src/webhook-form.ws.ts deleted file mode 100644 index 844b3382f7ae..000000000000 --- a/packages/sdk-components-react-router/src/webhook-form.ws.ts +++ /dev/null @@ -1,132 +0,0 @@ -import { Form as baseMeta } from "@webstudio-is/sdk-components-react/metas"; -import { - type WsComponentMeta, - type WsComponentPropsMeta, - showAttribute, -} from "@webstudio-is/react-sdk"; -import { props } from "./__generated__/webhook-form.props"; -import { WebhookFormIcon } from "@webstudio-is/icons/svg"; - -export const meta: WsComponentMeta = { - ...baseMeta, - category: "data", - label: "Webhook Form", - description: "Collect user data and send it to any webhook.", - order: 1, - icon: WebhookFormIcon, - states: [ - { selector: "[data-state=error]", label: "Error" }, - { selector: "[data-state=success]", label: "Success" }, - ], - template: [ - { - type: "instance", - component: "Form", - variables: { - formState: { initialValue: "initial" }, - }, - props: [ - { - type: "expression", - name: "state", - code: "formState", - }, - { - type: "action", - name: "onStateChange", - value: [ - { type: "execute", args: ["state"], code: `formState = state` }, - ], - }, - ], - children: [ - { - type: "instance", - label: "Form Content", - component: "Box", - props: [ - { - type: "expression", - name: showAttribute, - code: "formState === 'initial' || formState === 'error'", - }, - ], - children: [ - { - type: "instance", - component: "Label", - children: [{ type: "text", value: "Name", placeholder: true }], - }, - { - type: "instance", - component: "Input", - props: [{ type: "string", name: "name", value: "name" }], - children: [], - }, - { - type: "instance", - component: "Label", - children: [{ type: "text", value: "Email", placeholder: true }], - }, - { - type: "instance", - component: "Input", - props: [{ type: "string", name: "name", value: "email" }], - children: [], - }, - { - type: "instance", - component: "Button", - children: [{ type: "text", value: "Submit", placeholder: true }], - }, - ], - }, - - { - type: "instance", - label: "Success Message", - component: "Box", - props: [ - { - type: "expression", - name: showAttribute, - code: "formState === 'success'", - }, - ], - children: [ - { - type: "text", - value: "Thank you for getting in touch!", - placeholder: true, - }, - ], - }, - - { - type: "instance", - label: "Error Message", - component: "Box", - props: [ - { - type: "expression", - name: showAttribute, - code: "formState === 'error'", - }, - ], - children: [ - { - type: "text", - value: "Sorry, something went wrong.", - placeholder: true, - }, - ], - }, - ], - }, - ], -}; - -export const propsMeta: WsComponentPropsMeta = { - props, - initialProps: ["id", "className", "state", "action"], -};