@notmrabhi/flowforge 0.1.100 → 0.1.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{SchemaBuilderDrawer-Bm3jo1od.js → SchemaBuilderDrawer-CF4cJeXJ.js} +2 -2
- package/dist/{SchemaBuilderDrawer-Bm3jo1od.js.map → SchemaBuilderDrawer-CF4cJeXJ.js.map} +1 -1
- package/dist/{SchemaBuilderDrawer-BpM6iDS3.js → SchemaBuilderDrawer-CtT0j0WY.js} +2 -2
- package/dist/{SchemaBuilderDrawer-BpM6iDS3.js.map → SchemaBuilderDrawer-CtT0j0WY.js.map} +1 -1
- package/dist/{WorkflowExecutionHistory-NTYir_Yr.js → WorkflowExecutionHistory-6X5WPDN6.js} +2 -2
- package/dist/WorkflowExecutionHistory-6X5WPDN6.js.map +1 -0
- package/dist/{WorkflowExecutionHistory-DlTEUGKA.js → WorkflowExecutionHistory-jMlntXkG.js} +2 -3
- package/dist/WorkflowExecutionHistory-jMlntXkG.js.map +1 -0
- package/dist/buildBackendPayload-BKnT4KL8.js +2 -0
- package/dist/buildBackendPayload-BKnT4KL8.js.map +1 -0
- package/dist/buildBackendPayload-BU4ZV563.js +351 -0
- package/dist/buildBackendPayload-BU4ZV563.js.map +1 -0
- package/dist/canvas.cjs +1 -1
- package/dist/canvas.js +1 -1
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +19 -0
- package/dist/core.js +1 -1
- package/dist/form.cjs +1 -1
- package/dist/form.js +2 -2
- package/dist/{index-D9S-tVVh.js → index-BW1ACtO5.js} +6 -6
- package/dist/{index-D9S-tVVh.js.map → index-BW1ACtO5.js.map} +1 -1
- package/dist/{index-Dof6dCZQ.js → index-CyHfUy0G.js} +2 -2
- package/dist/{index-Dof6dCZQ.js.map → index-CyHfUy0G.js.map} +1 -1
- package/dist/{index-0X7geS1Y.js → index-DfJ_w7XO.js} +8 -10
- package/dist/{index-0X7geS1Y.js.map → index-DfJ_w7XO.js.map} +1 -1
- package/dist/{index-BtiCrLm2.js → index-DiT-JDHC.js} +2 -2
- package/dist/{index-BtiCrLm2.js.map → index-DiT-JDHC.js.map} +1 -1
- package/dist/{index-BB6AnrGo.js → index-Dj-p10sr.js} +2 -2
- package/dist/{index-BB6AnrGo.js.map → index-Dj-p10sr.js.map} +1 -1
- package/dist/{index-Cas7zuEl.js → index-DrduWLV7.js} +2 -2
- package/dist/{index-Cas7zuEl.js.map → index-DrduWLV7.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +19 -0
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/dist/WorkflowExecutionHistory-DlTEUGKA.js.map +0 -1
- package/dist/WorkflowExecutionHistory-NTYir_Yr.js.map +0 -1
- package/dist/buildBackendPayload-cMkV2Kes.js +0 -328
- package/dist/buildBackendPayload-cMkV2Kes.js.map +0 -1
- package/dist/buildBackendPayload-ciDznCtJ.js +0 -2
- package/dist/buildBackendPayload-ciDznCtJ.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BW1ACtO5.js"),T=require("./SchemaBuilderDrawer-CtT0j0WY.js");require("react/jsx-runtime");require("react");require("@mui/material");require("react-icons/md");const i=require("./nodeRegistry.cjs"),F=require("./templateRegistry.cjs"),p=require("./WorkflowExecutionHistory-6X5WPDN6.js"),S=require("./messages-Bg7b9RbI.js"),h=require("./bpmn-CcuE2X_Q.js"),t=require("./GatewayBranchEdge-hUano0YJ.js"),R=require("./buildBackendPayload-BKnT4KL8.js");class N{constructor(){this.channels=new Map}register(r,s){this.channels.set(r,s)}get(r){return this.channels.get(r)}list(){return Array.from(this.channels.entries()).map(([r,s])=>({key:r,...s}))}has(r){return this.channels.has(r)}}const v=new N;function D(o){const{currentNodeId:r,nodes:s,getParents:l,getOutputSchema:a,nodePath:d,nodeLabel:u,getNodeId:c=n=>n.id}=o,g=s.find(n=>c(n)===r);if(!g)return[];const w=P(g,s,l,c),f=[];for(const n of w){const y=a(n);if(!y||y.length===0)continue;const b=d(n);f.push({label:u?u(n):b,items:y.map(k=>m(k,b))})}return f}function P(o,r,s,l){const a=new Set,d=[],u=[...s(o,r)];for(;u.length>0;){const c=u.shift(),g=l(c);a.has(g)||(a.add(g),d.push(c),u.push(...s(c,r)))}return d}function m(o,r){const s=`${r}.${o.key}`,l=o.description??(o.sample!==void 0&&o.sample!==null?String(o.sample):void 0),a={label:o.label,path:s,key:o.key};return l!==void 0&&(a.description=l),(o.isList||o.type==="array")&&(a.isList=!0),o.children&&o.children.length>0&&(a.children=o.children.map(d=>m(d,s))),a}exports.DRAG_DATA_KEY=e.DRAG_DATA_KEY;exports.DynamicFormRenderer=e.DynamicFormRenderer;exports.FF=e.FF;exports.FlowForgeRegistry=e.FlowForgeRegistry;exports.FlowForm=e.FlowForm;exports.FormulaInput=e.FormulaInput;exports.InfiniteSelectField=e.InfiniteSelectField;exports.OptionsResolversProvider=e.OptionsResolversProvider;exports.TablePickerField=e.TablePickerField;exports.VariablePicker=e.VariablePicker;exports.VariablePickerProvider=e.VariablePickerProvider;exports.astHasRefs=e.astHasRefs;exports.astToTokens=e.astToTokens;exports.buildEvaluationPayload=e.buildEvaluationPayload;exports.buildFieldConfig=e.buildFieldConfig;exports.buildFormulaPath=e.buildFormulaPath;exports.buildSelectStyles=e.buildSelectStyles;exports.buildValidationSchema=e.buildValidationSchema;exports.conditionConfigToRulePayload=e.conditionConfigToRulePayload;exports.conditionNodesToRuleTree=e.conditionNodesToRuleTree;exports.dataSourceRegistry=e.dataSourceRegistry;exports.errorTextStyle=e.errorTextStyle;exports.extractLabel=e.extractLabel;exports.fieldRegistry=e.fieldRegistry;exports.hasFormulaTokens=e.hasFormulaTokens;exports.helperTextStyle=e.helperTextStyle;exports.inputStyle=e.inputStyle;exports.isFormula=e.isFormula;exports.leafReference=e.leafReference;exports.parseToAST=e.parseToAST;exports.ruleConditionsToNodes=e.ruleConditionsToNodes;exports.rulePayloadToConditionConfig=e.rulePayloadToConditionConfig;exports.serializeAST=e.serializeAST;exports.serializeASTAsConfig=e.serializeASTAsConfig;exports.serializeConditionExpressions=e.serializeConditionExpressions;exports.stripFormulaTokens=e.stripFormulaTokens;exports.tokenize=e.tokenize;exports.unwrapFormula=e.unwrapFormula;exports.useDynamicOptions=e.useDynamicOptions;exports.useOptionsResolvers=e.useOptionsResolvers;exports.useVariablePickerContext=e.useVariablePickerContext;exports.variableSubtreeToValue=e.variableSubtreeToValue;exports.wrapFormula=e.wrapFormula;exports.FIELD_TYPE_OPTIONS=T.FIELD_TYPE_OPTIONS;exports.SchemaBuilder=T.SchemaBuilder;exports.SchemaBuilderDrawer=T.SchemaBuilderDrawer;exports.useFlowForm=T.useFlowForm;exports.NodeTypeRegistry=i.NodeTypeRegistry;exports.baseNodeDefaults=i.baseNodeDefaults;exports.conditionBranchDescriptor=i.conditionBranchDescriptor;exports.defineNode=i.defineNode;exports.endEventDescriptor=i.endEventDescriptor;exports.makeSubWorkflowDescriptor=i.makeSubWorkflowDescriptor;exports.nodeTypeRegistry=i.nodeTypeRegistry;exports.notificationDescriptor=i.notificationDescriptor;exports.restApiDescriptor=i.restApiDescriptor;exports.startEventDescriptor=i.startEventDescriptor;exports.subWorkflowDescriptor=i.subWorkflowDescriptor;exports.webhookTriggerDescriptor=i.webhookTriggerDescriptor;exports.webhookTriggerTemplate=i.webhookTriggerTemplate;exports.TemplateRegistry=F.TemplateRegistry;exports.templateRegistry=F.templateRegistry;exports.FlowForgeCanvas=p.FlowForgeCanvas;exports.FlowForgeHeader=p.FlowForgeHeader;exports.SubWorkflowPreviewDrawer=p.SubWorkflowPreviewDrawer;exports.WorkflowCanvas=p.FlowForgeCanvas;exports.WorkflowExecutionHistory=p.WorkflowExecutionHistory;exports.WorkflowTemplateLibrary=p.WorkflowTemplateLibrary;exports.defaultFlowForgeMessages=S.defaultFlowForgeMessages;exports.loadWorkflowFromBpmn=h.loadWorkflowFromBpmn;exports.saveWorkflowToBpmn=h.saveWorkflowToBpmn;exports.ActionNode=t.ActionNode;exports.ApprovalNode=t.ApprovalNode;exports.EdgeWithPlusLabel=t.EdgeWithPlusLabel;exports.EndNode=t.EndNode;exports.FilterNode=t.FilterNode;exports.NodeBody=t.NodeBody;exports.RestApiNode=t.RestApiNode;exports.StartNode=t.StartNode;exports.TriggerNode=t.TriggerNode;exports.WebhookTriggerNode=t.WebhookTriggerNode;exports.builtInNodeTypes=t.builtInNodeTypes;exports.deriveRows=t.deriveRows;exports.resolveNodeRows=t.resolveNodeRows;exports.buildBackendPayload=R.buildBackendPayload;exports.buildVariableGroups=D;exports.notificationChannelRegistry=v;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.ts
CHANGED
|
@@ -184,6 +184,18 @@ export declare interface BuildPayloadConfig {
|
|
|
184
184
|
};
|
|
185
185
|
/** Start event id used in the outer chain. */
|
|
186
186
|
startEventId?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Canonical default shape for a non-event trigger's `eventConfig.config`,
|
|
189
|
+
* keyed by trigger `type` (e.g. `scheduler`). The backend expects the FULL
|
|
190
|
+
* config object (all keys present, even when the user only set a few). The
|
|
191
|
+
* package can't know a host's scheduler field names, so the host supplies
|
|
192
|
+
* the neutral defaults here; the trigger slot's saved formData is merged on
|
|
193
|
+
* top. Example:
|
|
194
|
+
* { scheduler: { triggerFrequency: null, startDateTime: null, interval: 1,
|
|
195
|
+
* timings: [], dateTime: null, daysOfMonth: [],
|
|
196
|
+
* daysOfWeek: [], expression: null, timeZone: null } }
|
|
197
|
+
*/
|
|
198
|
+
triggerConfigDefaults?: Record<string, Record<string, unknown>>;
|
|
187
199
|
}
|
|
188
200
|
|
|
189
201
|
export declare interface BuildPayloadContext {
|
|
@@ -582,6 +594,13 @@ export declare interface ExtensionFieldSpec {
|
|
|
582
594
|
passthrough?: boolean;
|
|
583
595
|
exclude?: string[];
|
|
584
596
|
key?: string;
|
|
597
|
+
/**
|
|
598
|
+
* For a `formData` passthrough: wrap the resulting object under this key
|
|
599
|
+
* before stringifying. e.g. `wrapKey: 'input'` turns
|
|
600
|
+
* `{noOfDays, action}` into `{"input":{"noOfDays":…,"action":…}}` — the
|
|
601
|
+
* shape the backend expects for `inputConfiguration`.
|
|
602
|
+
*/
|
|
603
|
+
wrapKey?: string;
|
|
585
604
|
};
|
|
586
605
|
}
|
|
587
606
|
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { D as v, a as x, F as D, b as P, c as A, d as C, I as E, O as W, T as I, V as B, e as L, f as V, g as O, h as z, i as H, j as _, k as G, l as M, m as q, n as K, N as Y, o as $, p as j, q as J, r as U, s as Q, t as X, u as Z, v as ee, w as se, x as oe, y as ae, z as re, A as te, B as ie, C as ne, E as le, G as de, H as ce, J as pe, K as ue, L as fe, M as he } from "./index-
|
|
2
|
-
import { F as ge, S as be, a as Te, u as Fe } from "./SchemaBuilderDrawer-
|
|
1
|
+
import { D as v, a as x, F as D, b as P, c as A, d as C, I as E, O as W, T as I, V as B, e as L, f as V, g as O, h as z, i as H, j as _, k as G, l as M, m as q, n as K, N as Y, o as $, p as j, q as J, r as U, s as Q, t as X, u as Z, v as ee, w as se, x as oe, y as ae, z as re, A as te, B as ie, C as ne, E as le, G as de, H as ce, J as pe, K as ue, L as fe, M as he } from "./index-DfJ_w7XO.js";
|
|
2
|
+
import { F as ge, S as be, a as Te, u as Fe } from "./SchemaBuilderDrawer-CF4cJeXJ.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material";
|
|
6
6
|
import "react-icons/md";
|
|
7
7
|
import { NodeTypeRegistry as we, baseNodeDefaults as ke, conditionBranchDescriptor as Se, defineNode as Ne, endEventDescriptor as Re, makeSubWorkflowDescriptor as ve, nodeTypeRegistry as xe, notificationDescriptor as De, restApiDescriptor as Pe, startEventDescriptor as Ae, subWorkflowDescriptor as Ce, webhookTriggerDescriptor as Ee, webhookTriggerTemplate as We } from "./nodeRegistry.js";
|
|
8
8
|
import { TemplateRegistry as Be, templateRegistry as Le } from "./templateRegistry.js";
|
|
9
|
-
import { F as Oe, a as ze, S as He, F as _e, W as Ge, b as Me } from "./WorkflowExecutionHistory-
|
|
9
|
+
import { F as Oe, a as ze, S as He, F as _e, W as Ge, b as Me } from "./WorkflowExecutionHistory-jMlntXkG.js";
|
|
10
10
|
import { d as Ke } from "./messages-CRZgWFU-.js";
|
|
11
11
|
import { l as $e, s as je } from "./bpmn-CtfWDaOY.js";
|
|
12
12
|
import { A as Ue, b as Qe, E as Xe, c as Ze, F as es, f as ss, R as os, S as as, T as rs, W as ts, e as is, g as ns, r as ls } from "./GatewayBranchEdge-BsPsPmnx.js";
|
|
13
|
-
import { b as cs } from "./buildBackendPayload-
|
|
13
|
+
import { b as cs } from "./buildBackendPayload-BU4ZV563.js";
|
|
14
14
|
class g {
|
|
15
15
|
constructor() {
|
|
16
16
|
this.channels = /* @__PURE__ */ new Map();
|