@mmapp/player-core 0.1.0-alpha.3 → 0.1.0-alpha.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.
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1041,6 +1041,8 @@ interface IRActionDefinition {
|
|
|
1041
1041
|
mode: IRActionMode;
|
|
1042
1042
|
config: Record<string, unknown>;
|
|
1043
1043
|
condition?: string;
|
|
1044
|
+
/** Saga compensation: action to run if a subsequent action fails (Design 28). */
|
|
1045
|
+
compensate?: IRActionDefinition;
|
|
1044
1046
|
}
|
|
1045
1047
|
interface IRDuringAction {
|
|
1046
1048
|
id: string;
|
|
@@ -1074,6 +1076,8 @@ interface IRStateDefinition {
|
|
|
1074
1076
|
during: IRDuringAction[];
|
|
1075
1077
|
on_exit: IRActionDefinition[];
|
|
1076
1078
|
on_event?: IROnEventSubscription[];
|
|
1079
|
+
/** Where this state executes at runtime (server, client, worker, edge, any). */
|
|
1080
|
+
runtime?: string;
|
|
1077
1081
|
}
|
|
1078
1082
|
interface IRConditionDefinition {
|
|
1079
1083
|
type?: string;
|
|
@@ -1094,6 +1098,8 @@ interface IRTransitionDefinition {
|
|
|
1094
1098
|
roles?: string[];
|
|
1095
1099
|
auto?: boolean;
|
|
1096
1100
|
required_fields?: string[];
|
|
1101
|
+
/** Where this transition executes at runtime (server, client, worker, edge, any). */
|
|
1102
|
+
runtime?: string;
|
|
1097
1103
|
}
|
|
1098
1104
|
interface IRFieldValidation {
|
|
1099
1105
|
min?: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -1041,6 +1041,8 @@ interface IRActionDefinition {
|
|
|
1041
1041
|
mode: IRActionMode;
|
|
1042
1042
|
config: Record<string, unknown>;
|
|
1043
1043
|
condition?: string;
|
|
1044
|
+
/** Saga compensation: action to run if a subsequent action fails (Design 28). */
|
|
1045
|
+
compensate?: IRActionDefinition;
|
|
1044
1046
|
}
|
|
1045
1047
|
interface IRDuringAction {
|
|
1046
1048
|
id: string;
|
|
@@ -1074,6 +1076,8 @@ interface IRStateDefinition {
|
|
|
1074
1076
|
during: IRDuringAction[];
|
|
1075
1077
|
on_exit: IRActionDefinition[];
|
|
1076
1078
|
on_event?: IROnEventSubscription[];
|
|
1079
|
+
/** Where this state executes at runtime (server, client, worker, edge, any). */
|
|
1080
|
+
runtime?: string;
|
|
1077
1081
|
}
|
|
1078
1082
|
interface IRConditionDefinition {
|
|
1079
1083
|
type?: string;
|
|
@@ -1094,6 +1098,8 @@ interface IRTransitionDefinition {
|
|
|
1094
1098
|
roles?: string[];
|
|
1095
1099
|
auto?: boolean;
|
|
1096
1100
|
required_fields?: string[];
|
|
1101
|
+
/** Where this transition executes at runtime (server, client, worker, edge, any). */
|
|
1102
|
+
runtime?: string;
|
|
1097
1103
|
}
|
|
1098
1104
|
interface IRFieldValidation {
|
|
1099
1105
|
min?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mmapp/player-core",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.4",
|
|
4
4
|
"description": "Framework-agnostic workflow engine for browser-side state machines, expression evaluation, and event-driven reactions",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|