"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TextPropertyEditor = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const PropertyEditorText_1 = require("./PropertyEditorText");
const ObserveState_1 = require("../StateManagement/ObserveState");
const StateManager_1 = require("@appglue/common/dist/Common/StateManager");
const StoryData_1 = require("../StoryBook/StoryData");
class TextData {
    editObject = {};
    hint = "hint";
    label = "TextEditor";
    parentDefaultValue = null;
    propertyName = "textValue";
    requiredText = "required text";
    updateCallback = () => {
        StateManager_1.StateManager.changed(this);
    };
}
exports.TextPropertyEditor = [
    new StoryData_1.StoryNode(() => {
        let args = new TextData();
        return (0, jsx_runtime_1.jsx)(ObserveState_1.ObserveState, { listenTo: args, control: () => (0, jsx_runtime_1.jsx)(PropertyEditorText_1.PropertyEditorText, { ...args }) });
    }, "Shared", "Property Editors", "Text"),
];
//# sourceMappingURL=PropertyEditorText-stories.js.map