jssm 5.142.2 → 5.142.4

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.
@@ -74,6 +74,30 @@ declare type JssmLineStyle = 'solid' | 'dashed' | 'dotted';
74
74
  * the decision to the surrounding configuration's default.
75
75
  */
76
76
  declare type JssmAllowsOverride = true | false | undefined;
77
+ /**
78
+ * Controls whether the state graph may contain disconnected components
79
+ * (islands). `true` permits islands (default), `false` requires a single
80
+ * connected component, and `'with_start'` permits islands only when every
81
+ * component contains at least one start state.
82
+ */
83
+ declare type JssmAllowIslands = true | false | 'with_start';
84
+ /**
85
+ * Structured render-size hint for a machine visualization, set by the FSL
86
+ * `default_size` directive. All three forms are optional in the sense that
87
+ * only one or two fields will be present depending on the form used:
88
+ *
89
+ * - `{ width }` — single-number form (`default_size: 800;`)
90
+ * - `{ width, height }` — bounding-box form (`default_size: 800 600;`)
91
+ * - `{ height }` — height-only form (`default_size: height 600;`)
92
+ *
93
+ * This is a *hint*, not a hard constraint. Renderers may ignore it.
94
+ *
95
+ * @see Machine.default_size
96
+ */
97
+ declare type JssmDefaultSize = {
98
+ width?: number;
99
+ height?: number;
100
+ };
77
101
  /**
78
102
  * Runtime-iterable list of valid `flow` directions for FSL diagrams.
79
103
  * Use this when you need to enumerate directions; for the type itself
@@ -376,7 +400,7 @@ declare type JssmGenericConfig<StateType, DataType> = {
376
400
  history?: number;
377
401
  min_exits?: number;
378
402
  max_exits?: number;
379
- allow_islands?: false;
403
+ allow_islands?: JssmAllowIslands;
380
404
  allow_force?: false;
381
405
  actions?: JssmPermittedOpt;
382
406
  simplify_bidi?: boolean;
@@ -403,6 +427,7 @@ declare type JssmGenericConfig<StateType, DataType> = {
403
427
  machine_name?: string;
404
428
  machine_version?: string;
405
429
  npm_name?: string;
430
+ default_size?: JssmDefaultSize;
406
431
  fsl_version?: string;
407
432
  auto_api?: boolean | string;
408
433
  instance_name?: string | undefined;
@@ -908,4 +933,4 @@ declare type JssmEventHandler<mDT, Ev extends JssmEventName> = (detail: JssmEven
908
933
  * removes the subscription. Calling it more than once is a no-op.
909
934
  */
910
935
  declare type JssmUnsubscribe = () => void;
911
- export { JssmColor, JssmShape, JssmTransition, JssmTransitions, JssmTransitionList, JssmTransitionRule, JssmArrow, JssmArrowKind, JssmArrowDirection, JssmGenericConfig, JssmGenericState, JssmGenericMachine, JssmParseTree, JssmCompileSe, JssmCompileSeStart, JssmCompileRule, JssmPermitted, JssmPermittedOpt, JssmResult, JssmStateDeclaration, JssmStateDeclarationRule, JssmStateConfig, JssmStateStyleKey, JssmStateStyleKeyList, JssmBaseTheme, JssmTheme, JssmLayout, JssmHistory, JssmSerialization, JssmPropertyDefinition, JssmAllowsOverride, JssmParseFunctionType, JssmMachineInternalState, JssmErrorExtendedInfo, FslDirections, FslDirection, FslThemes, FslTheme, HookDescription, HookHandler, HookContext, HookResult, HookComplexResult, EverythingHookContext, EverythingHookHandler, PostEverythingHookHandler, JssmEventName, JssmEventDetailMap, JssmEventFilterMap, JssmEventFilter, JssmEventHandler, JssmUnsubscribe, JssmTransitionEventDetail, JssmRejectionEventDetail, JssmActionEventDetail, JssmEntryEventDetail, JssmExitEventDetail, JssmTerminalEventDetail, JssmCompleteEventDetail, JssmErrorEventDetail, JssmDataChangeEventDetail, JssmOverrideEventDetail, JssmTimeoutEventDetail, JssmHookLifecycleEventDetail, JssmRng };
936
+ export { JssmColor, JssmShape, JssmTransition, JssmTransitions, JssmTransitionList, JssmTransitionRule, JssmArrow, JssmArrowKind, JssmArrowDirection, JssmGenericConfig, JssmGenericState, JssmGenericMachine, JssmParseTree, JssmCompileSe, JssmCompileSeStart, JssmCompileRule, JssmPermitted, JssmPermittedOpt, JssmResult, JssmStateDeclaration, JssmStateDeclarationRule, JssmStateConfig, JssmStateStyleKey, JssmStateStyleKeyList, JssmBaseTheme, JssmTheme, JssmLayout, JssmHistory, JssmSerialization, JssmPropertyDefinition, JssmAllowsOverride, JssmAllowIslands, JssmDefaultSize, JssmParseFunctionType, JssmMachineInternalState, JssmErrorExtendedInfo, FslDirections, FslDirection, FslThemes, FslTheme, HookDescription, HookHandler, HookContext, HookResult, HookComplexResult, EverythingHookContext, EverythingHookHandler, PostEverythingHookHandler, JssmEventName, JssmEventDetailMap, JssmEventFilterMap, JssmEventFilter, JssmEventHandler, JssmUnsubscribe, JssmTransitionEventDetail, JssmRejectionEventDetail, JssmActionEventDetail, JssmEntryEventDetail, JssmExitEventDetail, JssmTerminalEventDetail, JssmCompleteEventDetail, JssmErrorEventDetail, JssmDataChangeEventDetail, JssmOverrideEventDetail, JssmTimeoutEventDetail, JssmHookLifecycleEventDetail, JssmRng };