"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.FlowBuilderStories = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const FlowBuilder_1 = require("../FlowBuilder");
const TestDataSetup_1 = require("../Testing/TestDataSetup");
const DataTestData_1 = require("@appglue/common/dist/Common/Data/DataTestData");
const FlowSequenceCompleteStrategy_1 = require("@appglue/common/dist/Flow/Structure/FlowSequenceCompleteStrategy");
const StoryData_1 = require("../../CommonUI/StoryBook/StoryData");
exports.FlowBuilderStories = [
    new StoryData_1.StoryNode(() => {
        let flow = (0, TestDataSetup_1.getFlowWithNoSteps)();
        return (0, jsx_runtime_1.jsx)(FlowBuilder_1.FlowBuilder, { flow: flow });
    }, "Flow Builder", "No Steps"),
    new StoryData_1.StoryNode(() => {
        let flow = (0, TestDataSetup_1.getFlowWithSteps)();
        return (0, jsx_runtime_1.jsx)(FlowBuilder_1.FlowBuilder, { flow: flow });
    }, "Flow Builder", "With Steps"),
    new StoryData_1.StoryNode(() => {
        let flow = (0, TestDataSetup_1.getFlowWithNoSteps)();
        return ((0, jsx_runtime_1.jsx)(FlowBuilder_1.FlowBuilder, { flow: flow, flowName: "Flow Title", viewAPIUrl: "http://localhost:6006", onFlowCancel: () => { }, onFlowSave: () => { } }));
    }, "Flow Builder", "All Top Bar Controls"),
    new StoryData_1.StoryNode(() => {
        let flow = (0, TestDataSetup_1.getFlowWithSteps)();
        flow.sequences[0].canDelete = false;
        return (0, jsx_runtime_1.jsx)(FlowBuilder_1.FlowBuilder, { flow: flow });
    }, "Flow Builder", "Cannot Delete"),
    new StoryData_1.StoryNode(() => {
        let flow = (0, TestDataSetup_1.getFlowWithSteps)();
        flow.sequences[0].canCopy = false;
        return (0, jsx_runtime_1.jsx)(FlowBuilder_1.FlowBuilder, { flow: flow });
    }, "Flow Builder", "Cannot Copy"),
    new StoryData_1.StoryNode(() => {
        let flow = (0, TestDataSetup_1.getFlowWithEndOrError)();
        return (0, jsx_runtime_1.jsx)(FlowBuilder_1.FlowBuilder, { flow: flow });
    }, "Flow Builder", "Flow With End Or Error"),
    new StoryData_1.StoryNode(() => {
        let flow = (0, TestDataSetup_1.getFlowWithMultipleSequences)();
        return (0, jsx_runtime_1.jsx)(FlowBuilder_1.FlowBuilder, { flow: flow });
    }, "Flow Builder", "Flow With Multiple Sequences"),
    new StoryData_1.StoryNode(() => {
        let flow = (0, TestDataSetup_1.getFlowWithMultipleSequences)();
        flow.sequences[1].strategy = FlowSequenceCompleteStrategy_1.FlowSequenceCompleteStrategy.RETURN_TO_CALLING_STEP;
        return (0, jsx_runtime_1.jsx)(FlowBuilder_1.FlowBuilder, { flow: flow });
    }, "Flow Builder", "Return Branches"),
    new StoryData_1.StoryNode(() => {
        let flow = (0, TestDataSetup_1.getFlowWithSteps)();
        flow.inputData = (0, DataTestData_1.getFilledDataDefinition)();
        return (0, jsx_runtime_1.jsx)(FlowBuilder_1.FlowBuilder, { flow: flow });
    }, "Flow Builder", "With Data"),
    new StoryData_1.StoryNode(() => {
        let flow = (0, TestDataSetup_1.getFlowWithBranch)();
        return (0, jsx_runtime_1.jsx)(FlowBuilder_1.FlowBuilder, { flow: flow });
    }, "Flow Builder", "Branch"),
];
//# sourceMappingURL=XFlowEditor-stories.js.map