jssm 5.142.3 → 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.
@@ -81,6 +81,23 @@ declare type JssmAllowsOverride = true | false | undefined;
81
81
  * component contains at least one start state.
82
82
  */
83
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
+ };
84
101
  /**
85
102
  * Runtime-iterable list of valid `flow` directions for FSL diagrams.
86
103
  * Use this when you need to enumerate directions; for the type itself
@@ -410,6 +427,7 @@ declare type JssmGenericConfig<StateType, DataType> = {
410
427
  machine_name?: string;
411
428
  machine_version?: string;
412
429
  npm_name?: string;
430
+ default_size?: JssmDefaultSize;
413
431
  fsl_version?: string;
414
432
  auto_api?: boolean | string;
415
433
  instance_name?: string | undefined;
@@ -915,4 +933,4 @@ declare type JssmEventHandler<mDT, Ev extends JssmEventName> = (detail: JssmEven
915
933
  * removes the subscription. Calling it more than once is a no-op.
916
934
  */
917
935
  declare type JssmUnsubscribe = () => void;
918
- 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, 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 };