2021-09-09 15:10:22 +00:00
|
|
|
import Widget from "./widget";
|
|
|
|
|
import IconSVG from "./icon.svg";
|
|
|
|
|
import { GRID_DENSITY_MIGRATION_V1 } from "widgets/constants";
|
2022-01-02 16:27:39 +00:00
|
|
|
import { RecaptchaTypes } from "components/constants";
|
2021-09-09 15:10:22 +00:00
|
|
|
|
|
|
|
|
export const CONFIG = {
|
|
|
|
|
type: Widget.getWidgetType(),
|
|
|
|
|
name: "FormButton",
|
|
|
|
|
iconSVG: IconSVG,
|
|
|
|
|
hideCard: true,
|
|
|
|
|
needsMeta: true,
|
|
|
|
|
defaults: {
|
|
|
|
|
rows: 1 * GRID_DENSITY_MIGRATION_V1,
|
|
|
|
|
columns: 3 * GRID_DENSITY_MIGRATION_V1,
|
|
|
|
|
widgetName: "FormButton",
|
|
|
|
|
text: "Submit",
|
|
|
|
|
isDefaultClickDisabled: true,
|
2022-01-02 16:27:39 +00:00
|
|
|
recaptchaType: RecaptchaTypes.V3,
|
2021-09-09 15:10:22 +00:00
|
|
|
version: 1,
|
2021-12-14 07:55:58 +00:00
|
|
|
animateLoading: true,
|
2021-09-09 15:10:22 +00:00
|
|
|
},
|
|
|
|
|
properties: {
|
|
|
|
|
derived: Widget.getDerivedPropertiesMap(),
|
|
|
|
|
default: Widget.getDefaultPropertiesMap(),
|
|
|
|
|
meta: Widget.getMetaPropertiesMap(),
|
|
|
|
|
config: Widget.getPropertyPaneConfig(),
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default Widget;
|