@formity/system 0.2.1 → 0.3.0

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.
Files changed (75) hide show
  1. package/dist/index.cjs.js +1 -1
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.d.ts +6 -6
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.esm.js +1 -1
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/types/controls.d.ts +18 -0
  8. package/dist/types/controls.d.ts.map +1 -0
  9. package/dist/types/handlers/basic.d.ts +9 -0
  10. package/dist/types/handlers/basic.d.ts.map +1 -0
  11. package/dist/types/handlers/typed.d.ts +12 -0
  12. package/dist/types/handlers/typed.d.ts.map +1 -0
  13. package/dist/types/schema/basic.d.ts +80 -0
  14. package/dist/types/schema/basic.d.ts.map +1 -0
  15. package/dist/types/schema/typed.d.ts +190 -0
  16. package/dist/types/schema/typed.d.ts.map +1 -0
  17. package/dist/types/state/inputs.d.ts +73 -0
  18. package/dist/types/state/inputs.d.ts.map +1 -0
  19. package/dist/types/state/point.d.ts +12 -0
  20. package/dist/types/state/point.d.ts.map +1 -0
  21. package/dist/types/state/position.d.ts +35 -0
  22. package/dist/types/state/position.d.ts.map +1 -0
  23. package/dist/types/state/state.d.ts +13 -0
  24. package/dist/types/state/state.d.ts.map +1 -0
  25. package/dist/utils/form.d.ts +7 -7
  26. package/dist/utils/form.d.ts.map +1 -1
  27. package/dist/utils/inputs/flow.cond.d.ts +32 -0
  28. package/dist/utils/inputs/flow.cond.d.ts.map +1 -0
  29. package/dist/utils/inputs/flow.cond.test.d.ts +2 -0
  30. package/dist/utils/inputs/flow.cond.test.d.ts.map +1 -0
  31. package/dist/utils/inputs/flow.d.ts +64 -0
  32. package/dist/utils/inputs/flow.d.ts.map +1 -0
  33. package/dist/utils/inputs/flow.list.d.ts +32 -0
  34. package/dist/utils/inputs/flow.list.d.ts.map +1 -0
  35. package/dist/utils/inputs/flow.list.test.d.ts +2 -0
  36. package/dist/utils/inputs/flow.list.test.d.ts.map +1 -0
  37. package/dist/utils/inputs/flow.loop.d.ts +32 -0
  38. package/dist/utils/inputs/flow.loop.d.ts.map +1 -0
  39. package/dist/utils/inputs/flow.loop.test.d.ts +2 -0
  40. package/dist/utils/inputs/flow.loop.test.d.ts.map +1 -0
  41. package/dist/utils/inputs/flow.switch.d.ts +32 -0
  42. package/dist/utils/inputs/flow.switch.d.ts.map +1 -0
  43. package/dist/utils/inputs/flow.switch.test.d.ts +2 -0
  44. package/dist/utils/inputs/flow.switch.test.d.ts.map +1 -0
  45. package/dist/utils/inputs/flow.test.d.ts +2 -0
  46. package/dist/utils/inputs/flow.test.d.ts.map +1 -0
  47. package/dist/utils/inputs/form.d.ts +30 -0
  48. package/dist/utils/inputs/form.d.ts.map +1 -0
  49. package/dist/utils/inputs/form.test.d.ts +2 -0
  50. package/dist/utils/inputs/form.test.d.ts.map +1 -0
  51. package/dist/utils/navigate.d.ts +10 -10
  52. package/dist/utils/navigate.d.ts.map +1 -1
  53. package/dist/utils/schema/flow.cond.d.ts +2 -2
  54. package/dist/utils/schema/flow.cond.d.ts.map +1 -1
  55. package/dist/utils/schema/flow.d.ts +2 -2
  56. package/dist/utils/schema/flow.d.ts.map +1 -1
  57. package/dist/utils/schema/flow.list.d.ts +2 -2
  58. package/dist/utils/schema/flow.list.d.ts.map +1 -1
  59. package/dist/utils/schema/flow.loop.d.ts +2 -2
  60. package/dist/utils/schema/flow.loop.d.ts.map +1 -1
  61. package/dist/utils/schema/flow.switch.d.ts +2 -2
  62. package/dist/utils/schema/flow.switch.d.ts.map +1 -1
  63. package/dist/utils/schema/form.d.ts +1 -1
  64. package/dist/utils/schema/form.d.ts.map +1 -1
  65. package/dist/utils/schema/return.d.ts +1 -1
  66. package/dist/utils/schema/return.d.ts.map +1 -1
  67. package/dist/utils/schema/variables.d.ts +1 -1
  68. package/dist/utils/schema/variables.d.ts.map +1 -1
  69. package/dist/utils/schema/yield.d.ts +1 -1
  70. package/dist/utils/schema/yield.d.ts.map +1 -1
  71. package/dist/utils/state.d.ts +13 -0
  72. package/dist/utils/state.d.ts.map +1 -0
  73. package/dist/utils/state.test.d.ts +2 -0
  74. package/dist/utils/state.test.d.ts.map +1 -0
  75. package/package.json +1 -1
@@ -0,0 +1,73 @@
1
+ /**
2
+ * Union of `FlowInputs` and `FormInputs`.
3
+ */
4
+ export type ItemInputs = FlowInputs | FormInputs;
5
+ /**
6
+ * Values entered for the forms that are within any flow control structure.
7
+ */
8
+ export type FlowInputs = ListInputs | CondInputs | LoopInputs | SwitchInputs;
9
+ /**
10
+ * Values entered for the forms that are within a list.
11
+ */
12
+ export type ListInputs = {
13
+ type: "list";
14
+ list: {
15
+ [position: number]: ItemInputs;
16
+ };
17
+ };
18
+ /**
19
+ * Values entered for the forms that are within a condition.
20
+ */
21
+ export type CondInputs = {
22
+ type: "cond";
23
+ then: {
24
+ [position: number]: ItemInputs;
25
+ };
26
+ else: {
27
+ [position: number]: ItemInputs;
28
+ };
29
+ };
30
+ /**
31
+ * Values entered for the forms that are within a loop.
32
+ */
33
+ export type LoopInputs = {
34
+ type: "loop";
35
+ list: {
36
+ [position: number]: ItemInputs;
37
+ };
38
+ };
39
+ /**
40
+ * Values entered for the forms that are within a switch.
41
+ */
42
+ export type SwitchInputs = {
43
+ type: "switch";
44
+ branches: {
45
+ [position: number]: {
46
+ [position: number]: ItemInputs;
47
+ };
48
+ };
49
+ default: {
50
+ [position: number]: ItemInputs;
51
+ };
52
+ };
53
+ /**
54
+ * Values entered for a form.
55
+ */
56
+ export type FormInputs = {
57
+ [key: string]: NameInputs;
58
+ };
59
+ /**
60
+ * Values entered for a single form value.
61
+ */
62
+ export type NameInputs = {
63
+ data: {
64
+ here: true;
65
+ data: unknown;
66
+ } | {
67
+ here: false;
68
+ };
69
+ keys: {
70
+ [key: PropertyKey]: NameInputs;
71
+ };
72
+ };
73
+ //# sourceMappingURL=inputs.d.ts.map
@@ -0,0 +1 @@
1
+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AAU,GAAG;IACvB,IAAI,EAAE;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,IAAI,EAAE,OAAO,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,KAAK,CAAA;KAAE,CAAC;IACtD,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,WAAW,GAAG,UAAU,CAAA;KAAE,CAAC;CAC1C,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { Position } from "./position";
2
+ /**
3
+ * Represents a specific position within a multi-step form and its associated values.
4
+ *
5
+ * @property path An array of `Position` objects that define the position within the multi-step form.
6
+ * @property values An object containing the values associated with the position.
7
+ */
8
+ export type Point = {
9
+ path: Position[];
10
+ values: object;
11
+ };
12
+ //# sourceMappingURL=point.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../src/types/state/point.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C;;;;;GAKG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB,IAAI,EAAE,QAAQ,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Represents a position within a flow control structure of a multi-step form. This can be a list, a conditional, a loop, or a switch.
3
+ */
4
+ export type Position = ListPosition | CondPosition | LoopPosition | SwitchPosition;
5
+ /**
6
+ * Represents a position within a list.
7
+ */
8
+ export type ListPosition = {
9
+ type: "list";
10
+ slot: number;
11
+ };
12
+ /**
13
+ * Represents a position within a conditional.
14
+ */
15
+ export type CondPosition = {
16
+ type: "cond";
17
+ path: "then" | "else";
18
+ slot: number;
19
+ };
20
+ /**
21
+ * Represents a position within a loop.
22
+ */
23
+ export type LoopPosition = {
24
+ type: "loop";
25
+ slot: number;
26
+ };
27
+ /**
28
+ * Represents a position within a switch.
29
+ */
30
+ export type SwitchPosition = {
31
+ type: "switch";
32
+ branch: number;
33
+ slot: number;
34
+ };
35
+ //# sourceMappingURL=position.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../src/types/state/position.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,QAAQ,GAChB,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,cAAc,CAAC;AAEnB;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { Point } from "./point";
2
+ import { ListInputs } from "./inputs";
3
+ /**
4
+ * Represents the progression of steps completed in a multi-step form.
5
+ *
6
+ * @property points An array of `Point` objects. The last point in the array represents the current position with the associated values.
7
+ * @property inputs A `ListInputs` object that contains the values entered at each step of the form.
8
+ */
9
+ export type State = {
10
+ points: Point[];
11
+ inputs: ListInputs;
12
+ };
13
+ //# sourceMappingURL=state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../src/types/state/state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC;;;;;GAKG;AACH,MAAM,MAAM,KAAK,GAAG;IAClB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC"}
@@ -1,18 +1,18 @@
1
- import type { Flow } from "../types/flow/flow";
2
- import type { ListSchema as CustomListSchema } from "../types/schema/custom";
1
+ import type { State } from "../types/state/state";
2
+ import type { ListSchema as TypedListSchema } from "../types/schema/typed";
3
3
  import type { ListValues } from "../types/values";
4
- import type { OnNext, OnBack, GetFlow, SetFlow } from "../types/callbacks";
4
+ import type { OnNext, OnBack, GetState, SetState } from "../types/controls";
5
5
  /**
6
6
  * Returns the rendered form for the current step of the multi-step form.
7
7
  *
8
- * @param flow The current state of the multi-step form.
8
+ * @param state The current state of the multi-step form.
9
9
  * @param schema The `ListSchema` object representing the multi-step form.
10
10
  * @param params An object containing the parameters for the form.
11
11
  * @param onNext A callback function used to navigate to the next step of the multi-step form.
12
12
  * @param onBack A callback function used to navigate to the previous step of the multi-step form.
13
- * @param getFlow A callback function used to get the current state of the multi-step form.
14
- * @param setFlow A callback function used to set the current state of the multi-step form.
13
+ * @param getState A callback function used to get the current state of the multi-step form.
14
+ * @param setState A callback function used to set the current state of the multi-step form.
15
15
  * @returns The rendered form for the current step of the multi-step form.
16
16
  */
17
- export declare function getForm<Render, Values extends ListValues, Inputs extends object, Params extends object>(flow: Flow, schema: CustomListSchema<Render, Values, Inputs, Params>, params: Params, onNext: OnNext, onBack: OnBack, getFlow: GetFlow, setFlow: SetFlow): Render;
17
+ export declare function getForm<Render, Values extends ListValues, Inputs extends object, Params extends object>(state: State, schema: TypedListSchema<Render, Values, Inputs, Params>, params: Params, onNext: OnNext, onBack: OnBack, getState: GetState, setState: SetState): Render;
18
18
  //# sourceMappingURL=form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/utils/form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC/C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ACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GACjB,MAAM,CAYR"}
@@ -0,0 +1,32 @@
1
+ import type { ItemInputs, FlowInputs, CondInputs } from "../../types/state/inputs";
2
+ import type { Position } from "../../types/state/position";
3
+ /**
4
+ * Creates a `CondInputs` object.
5
+ *
6
+ * @returns The created `CondInputs` object.
7
+ */
8
+ export declare function create(): FlowInputs;
9
+ /**
10
+ * Clones a `CondInputs` object.
11
+ *
12
+ * @param flow A `CondInputs` object.
13
+ * @returns The cloned `CondInputs` object.
14
+ */
15
+ export declare function clone(flow: CondInputs): FlowInputs;
16
+ /**
17
+ * Returns the `ItemInputs` object at the given position within the given `CondInputs` object, or `null` if there is no item at the given position.
18
+ *
19
+ * @param flow The `CondInputs` object.
20
+ * @param position The position within the `CondInputs` object.
21
+ * @returns The `ItemInputs` object at the given position within the `CondInputs` object, or `null` if there is no item at the given position.
22
+ */
23
+ export declare function getItem(flow: CondInputs, position: Position): ItemInputs | null;
24
+ /**
25
+ * Sets the `ItemInputs` object at the given position within the given `CondInputs` object.
26
+ *
27
+ * @param flow The `CondInputs` object.
28
+ * @param position The position within the `CondInputs` object.
29
+ * @param item The `ItemInputs` object to set.
30
+ */
31
+ export declare function setItem(flow: CondInputs, position: Position, item: ItemInputs): void;
32
+ //# sourceMappingURL=flow.cond.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.cond.d.ts","sourceRoot":"","sources":["../../../src/utils/inputs/flow.cond.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACX,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,4BAA4B,CAAC;AAEzE;;;;GAIG;AACH,wBAAgB,MAAM,IAAI,UAAU,CAEnC;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,CAElD;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,QAAQ,GACjB,UAAU,GAAG,IAAI,CAInB;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,UAAU,GACf,IAAI,CAGN"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flow.cond.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.cond.test.d.ts","sourceRoot":"","sources":["../../../src/utils/inputs/flow.cond.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,64 @@
1
+ import type { ItemInputs, FlowInputs } from "../../types/state/inputs";
2
+ import type { Position } from "../../types/state/position";
3
+ /**
4
+ * Returns the value that is in the given `FlowInputs` object using the following parameters:
5
+ *
6
+ * - `path`: The path within the `FlowInputs` object that contains a `FormInputs` object.
7
+ * - `name`: The name of the value within the `FormInputs` object.
8
+ * - `keys`: The list of keys that is used to access the value within the `FormInputs` object.
9
+ * - `defaultValue`: The default value to return if the value is not found.
10
+ *
11
+ * @param flow The `FlowInputs` object.
12
+ * @param path The path within the `FlowInputs` object that contains a `FormInputs` object.
13
+ * @param name The name of the value within the `FormInputs` object.
14
+ * @param keys The list of keys that is used to access the value within the `FormInputs` object.
15
+ * @param defaultValue The default value to return if the value is not found.
16
+ * @returns The value that is in the given `FlowInputs` object or the default value if the value is not found.
17
+ */
18
+ export declare function get(flow: FlowInputs, path: Position[], name: string, keys: PropertyKey[], defaultValue: unknown): unknown;
19
+ /**
20
+ * Sets the value in the given `FlowInputs` object using the following parameters:
21
+ *
22
+ * - `path`: The path within the `FlowInputs` object that contains a `FormInputs` object.
23
+ * - `name`: The name of the value within the `FormInputs` object.
24
+ * - `keys`: The list of keys that is used to access the value within the `FormInputs` object.
25
+ * - `value`: The value to set.
26
+ *
27
+ * @param flow The `FlowInputs` object.
28
+ * @param path The path within the `FlowInputs` object that contains a `FormInputs` object.
29
+ * @param name The name of the value within the `FormInputs` object.
30
+ * @param keys The list of keys that is used to access the value within the `FormInputs` object.
31
+ * @param data The value to set.
32
+ * @returns The updated `FlowInputs` object.
33
+ */
34
+ export declare function set(flow: FlowInputs, path: Position[], name: string, keys: PropertyKey[], data: unknown): FlowInputs;
35
+ /**
36
+ * Creates a `FlowInputs` object.
37
+ *
38
+ * @returns The created `FlowInputs` object.
39
+ */
40
+ export declare function create(position: Position): FlowInputs;
41
+ /**
42
+ * Clones a `FlowInputs` object.
43
+ *
44
+ * @param flow A `FlowInputs` object.
45
+ * @returns The cloned `FlowInputs` object.
46
+ */
47
+ export declare function clone(flow: FlowInputs): FlowInputs;
48
+ /**
49
+ * Returns the `ItemInputs` object at the given position within the given `FlowInputs` object, or `null` if there is no item at the given position.
50
+ *
51
+ * @param flow The `FlowInputs` object.
52
+ * @param position The position within the `FlowInputs` object.
53
+ * @returns The `ItemInputs` object at the given position within the `FlowInputs` object, or `null` if there is no item at the given position.
54
+ */
55
+ export declare function getItem(flow: FlowInputs, position: Position): ItemInputs | null;
56
+ /**
57
+ * Sets the `ItemInputs` object at the given position within the given `FlowInputs` object.
58
+ *
59
+ * @param flow The `FlowInputs` object.
60
+ * @param position The position within the `FlowInputs` object.
61
+ * @param item The `ItemInputs` object to set.
62
+ */
63
+ export declare function setItem(flow: FlowInputs, position: Position, item: ItemInputs): void;
64
+ //# sourceMappingURL=flow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../../src/utils/inputs/flow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EAEX,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAQ3D;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,QAAQ,EAAE,EAChB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,WAAW,EAAE,EACnB,YAAY,EAAE,OAAO,GACpB,OAAO,CAUT;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,QAAQ,EAAE,EAChB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,WAAW,EAAE,EACnB,IAAI,EAAE,OAAO,GACZ,UAAU,CA2BZ;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,UAAU,CAWrD;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,CAWlD;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,QAAQ,GACjB,UAAU,GAAG,IAAI,CAWnB;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,UAAU,GACf,IAAI,CAWN"}
@@ -0,0 +1,32 @@
1
+ import type { ItemInputs, FlowInputs, ListInputs } from "../../types/state/inputs";
2
+ import type { Position } from "../../types/state/position";
3
+ /**
4
+ * Creates a `ListInputs` object.
5
+ *
6
+ * @returns The created `ListInputs` object.
7
+ */
8
+ export declare function create(): FlowInputs;
9
+ /**
10
+ * Clones a `ListInputs` object.
11
+ *
12
+ * @param flow A `ListInputs` object.
13
+ * @returns The cloned `ListInputs` object.
14
+ */
15
+ export declare function clone(flow: ListInputs): FlowInputs;
16
+ /**
17
+ * Returns the `ItemInputs` object at the given position within the given `ListInputs` object, or `null` if there is no item at the given position.
18
+ *
19
+ * @param flow The `ListInputs` object.
20
+ * @param position The position within the `ListInputs` object.
21
+ * @returns The `ItemInputs` object at the given position within the `ListInputs` object, or `null` if there is no item at the given position.
22
+ */
23
+ export declare function getItem(flow: ListInputs, position: Position): ItemInputs | null;
24
+ /**
25
+ * Sets the `ItemInputs` object at the given position within the given `ListInputs` object.
26
+ *
27
+ * @param flow The `ListInputs` object.
28
+ * @param position The position within the `ListInputs` object.
29
+ * @param item The `ItemInputs` object to set.
30
+ */
31
+ export declare function setItem(flow: ListInputs, position: Position, item: ItemInputs): void;
32
+ //# sourceMappingURL=flow.list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.list.d.ts","sourceRoot":"","sources":["../../../src/utils/inputs/flow.list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACX,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,4BAA4B,CAAC;AAEzE;;;;GAIG;AACH,wBAAgB,MAAM,IAAI,UAAU,CAEnC;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,CAElD;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,QAAQ,GACjB,UAAU,GAAG,IAAI,CAInB;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,UAAU,GACf,IAAI,CAGN"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flow.list.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.list.test.d.ts","sourceRoot":"","sources":["../../../src/utils/inputs/flow.list.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ import type { ItemInputs, FlowInputs, LoopInputs } from "../../types/state/inputs";
2
+ import type { Position } from "../../types/state/position";
3
+ /**
4
+ * Creates a `LoopInputs` object.
5
+ *
6
+ * @returns The created `LoopInputs` object.
7
+ */
8
+ export declare function create(): FlowInputs;
9
+ /**
10
+ * Clones a `LoopInputs` object.
11
+ *
12
+ * @param flow A `LoopInputs` object.
13
+ * @returns The cloned `LoopInputs` object.
14
+ */
15
+ export declare function clone(flow: LoopInputs): FlowInputs;
16
+ /**
17
+ * Returns the `ItemInputs` object at the given position within the given `LoopInputs` object, or `null` if there is no item at the given position.
18
+ *
19
+ * @param flow The `LoopInputs` object.
20
+ * @param position The position within the `LoopInputs` object.
21
+ * @returns The `ItemInputs` object at the given position within the `LoopInputs` object, or `null` if there is no item at the given position.
22
+ */
23
+ export declare function getItem(flow: LoopInputs, position: Position): ItemInputs | null;
24
+ /**
25
+ * Sets the `ItemInputs` object at the given position within the given `LoopInputs` object.
26
+ *
27
+ * @param flow The `LoopInputs` object.
28
+ * @param position The position within the `LoopInputs` object.
29
+ * @param item The `ItemInputs` object to set.
30
+ */
31
+ export declare function setItem(flow: LoopInputs, position: Position, item: ItemInputs): void;
32
+ //# sourceMappingURL=flow.loop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.loop.d.ts","sourceRoot":"","sources":["../../../src/utils/inputs/flow.loop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,UAAU,EACX,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,4BAA4B,CAAC;AAEzE;;;;GAIG;AACH,wBAAgB,MAAM,IAAI,UAAU,CAEnC;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,CAElD;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,QAAQ,GACjB,UAAU,GAAG,IAAI,CAInB;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,UAAU,GACf,IAAI,CAGN"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flow.loop.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.loop.test.d.ts","sourceRoot":"","sources":["../../../src/utils/inputs/flow.loop.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ import type { ItemInputs, FlowInputs, SwitchInputs } from "../../types/state/inputs";
2
+ import type { Position } from "../../types/state/position";
3
+ /**
4
+ * Creates a `SwitchInputs` object.
5
+ *
6
+ * @returns The created `SwitchInputs` object.
7
+ */
8
+ export declare function create(): FlowInputs;
9
+ /**
10
+ * Clones a `SwitchInputs` object.
11
+ *
12
+ * @param flow A `SwitchInputs` object.
13
+ * @returns The cloned `SwitchInputs` object.
14
+ */
15
+ export declare function clone(flow: SwitchInputs): FlowInputs;
16
+ /**
17
+ * Returns the `ItemInputs` object at the given position within the given `SwitchInputs` object, or `null` if there is no item at the given position.
18
+ *
19
+ * @param flow The `SwitchInputs` object.
20
+ * @param position The position within the `SwitchInputs` object.
21
+ * @returns The `ItemInputs` object at the given position within the `SwitchInputs` object, or `null` if there is no item at the given position.
22
+ */
23
+ export declare function getItem(flow: SwitchInputs, position: Position): ItemInputs | null;
24
+ /**
25
+ * Sets the `ItemInputs` object at the given position within the given `SwitchInputs` object.
26
+ *
27
+ * @param flow The `SwitchInputs` object.
28
+ * @param position The position within the `SwitchInputs` object.
29
+ * @param item The `ItemInputs` object to set.
30
+ */
31
+ export declare function setItem(flow: SwitchInputs, position: Position, item: ItemInputs): void;
32
+ //# sourceMappingURL=flow.switch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.switch.d.ts","sourceRoot":"","sources":["../../../src/utils/inputs/flow.switch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,YAAY,EACb,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,QAAQ,EAAkB,MAAM,4BAA4B,CAAC;AAE3E;;;;GAIG;AACH,wBAAgB,MAAM,IAAI,UAAU,CAEnC;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,IAAI,EAAE,YAAY,GAAG,UAAU,CAQpD;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE,QAAQ,GACjB,UAAU,GAAG,IAAI,CAUnB;AAED;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,IAAI,EAAE,YAAY,EAClB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,UAAU,GACf,IAAI,CAWN"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flow.switch.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.switch.test.d.ts","sourceRoot":"","sources":["../../../src/utils/inputs/flow.switch.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=flow.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow.test.d.ts","sourceRoot":"","sources":["../../../src/utils/inputs/flow.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
1
+ import type { FormInputs } from "../../types/state/inputs";
2
+ /**
3
+ * Returns the value that is in the given `FormInputs` object using the following parameters:
4
+ *
5
+ * - `name`: The name of the value within the `FormInputs` object.
6
+ * - `keys`: The list of keys that is used to access the value within the `FormInputs` object.
7
+ * - `defaultValue`: The default value to return if the value is not found.
8
+ *
9
+ * @param form The `FormInputs` object.
10
+ * @param name The name of the value within the `FormInputs` object.
11
+ * @param keys The list of keys that is used to access the value within the `FormInputs` object.
12
+ * @param defaultValue The default value to return if the value is not found.
13
+ * @returns The value that is in the given `FormInputs` object or the default value if the value is not found.
14
+ */
15
+ export declare function get(form: FormInputs, name: string, keys: PropertyKey[], defaultValue: unknown): unknown;
16
+ /**
17
+ * Sets the value in the given `FormInputs` object using the following parameters:
18
+ *
19
+ * - `name`: The name of the value within the `FormInputs` object.
20
+ * - `keys`: The list of keys that is used to access the value within the `FormInputs` object.
21
+ * - `data`: The value to set.
22
+ *
23
+ * @param form The `FormInputs` object.
24
+ * @param name The name of the value within the `FormInputs` object.
25
+ * @param keys The list of keys that is used to access the value within the `FormInputs` object.
26
+ * @param data The value to set.
27
+ * @returns The updated `FormInputs` object.
28
+ */
29
+ export declare function set(form: FormInputs, name: string, keys: PropertyKey[], data: unknown): FormInputs;
30
+ //# sourceMappingURL=form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/utils/inputs/form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAc,MAAM,0BAA0B,CAAC;AAEvE;;;;;;;;;;;;GAYG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,WAAW,EAAE,EACnB,YAAY,EAAE,OAAO,GACpB,OAAO,CAaT;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,GAAG,CACjB,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,WAAW,EAAE,EACnB,IAAI,EAAE,OAAO,GACZ,UAAU,CAsBZ"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=form.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.test.d.ts","sourceRoot":"","sources":["../../../src/utils/inputs/form.test.ts"],"names":[],"mappings":""}
@@ -1,10 +1,10 @@
1
- import type { Flow } from "../types/flow/flow";
2
- import type { ListSchema as CustomListSchema } from "../types/schema/custom";
3
- import type { OnYield as CustomOnYield } from "../types/callbacks/custom";
4
- import type { OnReturn as CustomOnReturn } from "../types/callbacks/custom";
1
+ import type { State } from "../types/state/state";
2
+ import type { ListSchema as TypedListSchema } from "../types/schema/typed";
3
+ import type { OnYield as TypedOnYield } from "../types/handlers/typed";
4
+ import type { OnReturn as TypedOnReturn } from "../types/handlers/typed";
5
5
  import type { ListValues } from "../types/values";
6
6
  /**
7
- * Initializes the multi-step form and returns its initial state, including a cursor
7
+ * Initializes the multi-step form and returns its initial state, including a point
8
8
  * pointing to the first form step. If no form step is found, or if a return operation
9
9
  * is encountered before reaching a form, an error is thrown.
10
10
  *
@@ -18,7 +18,7 @@ import type { ListValues } from "../types/values";
18
18
  *
19
19
  * @throws An error if no form step is found or if a return operation is encountered before a form step.
20
20
  */
21
- export declare function initFlow<Render, Values extends ListValues, Inputs extends object, Params extends object>(schema: CustomListSchema<Render, Values, Inputs, Params>, values: Inputs, onYield: CustomOnYield<Values>): Flow;
21
+ export declare function initState<Render, Values extends ListValues, Inputs extends object, Params extends object>(schema: TypedListSchema<Render, Values, Inputs, Params>, values: Inputs, onYield: TypedOnYield<Values>): State;
22
22
  /**
23
23
  * Navigates to the next form step of the multi-step form and returns the updated state.
24
24
  * If there is no next form step, the returned state contains the current form step.
@@ -29,22 +29,22 @@ export declare function initFlow<Render, Values extends ListValues, Inputs exten
29
29
  * The `onReturn` callback is triggered whenever a return operation is encountered during traversal,
30
30
  * allowing for final values to be processed.
31
31
  *
32
- * @param flow The current state of the multi-step form.
32
+ * @param state The current state of the multi-step form.
33
33
  * @param schema The `ListSchema` object representing the multi-step form.
34
34
  * @param values An object containing the generated values within the multi-step form.
35
35
  * @param onYield A callback function triggered when the multi-step form yields values.
36
36
  * @param onReturn A callback function triggered when the multi-step form returns values.
37
37
  * @returns The updated state of the multi-step form.
38
38
  */
39
- export declare function nextFlow<Render, Values extends ListValues, Inputs extends object, Params extends object>(flow: Flow, schema: CustomListSchema<Render, Values, Inputs, Params>, values: object, onYield: CustomOnYield<Values>, onReturn: CustomOnReturn<Values>): Flow;
39
+ export declare function nextState<Render, Values extends ListValues, Inputs extends object, Params extends object>(state: State, schema: TypedListSchema<Render, Values, Inputs, Params>, values: object, onYield: TypedOnYield<Values>, onReturn: TypedOnReturn<Values>): State;
40
40
  /**
41
41
  * Navigates to the previous form step of the multi-step form and returns the updated state.
42
42
  * If there is no previous form step, the returned state contains the current form step.
43
43
  *
44
- * @param flow The current state of the multi-step form.
44
+ * @param state The current state of the multi-step form.
45
45
  * @param schema The `ListSchema` object representing the multi-step form.
46
46
  * @param values An object containing the generated values within the multi-step form.
47
47
  * @returns The updated state of the multi-step form.
48
48
  */
49
- export declare function prevFlow<Render, Values extends ListValues, Inputs extends object, Params extends object>(flow: Flow, schema: CustomListSchema<Render, Values, Inputs, Params>, values: object): Flow;
49
+ export declare function prevState<Render, Values extends ListValues, Inputs extends object, Params extends object>(state: State, schema: TypedListSchema<Render, Values, Inputs, Params>, values: object): State;
50
50
  //# sourceMappingURL=navigate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"navigate.d.ts","sourceRoot":"","sources":["../../src/utils/navigate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAK/C,OAAO,KAAK,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAO5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAUlD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,QAAQ,CACtB,MAAM,EACN,MAAM,SAAS,UAAU,EACzB,MAAM,SAAS,MAAM,EACrB,MAAM,SAAS,MAAM,EAErB,MAAM,EAAE,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACxD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,aAAa,CAAC,MAAM,CAAC,GAC7B,IAAI,CAKN;AA4ED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,QAAQ,CACtB,MAAM,EACN,MAAM,SAAS,UAAU,EACzB,MAAM,SAAS,MAAM,EACrB,MAAM,S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wBAAgB,SAAS,CACvB,MAAM,EACN,MAAM,SAAS,UAAU,EACzB,MAAM,SAAS,MAAM,EACrB,MAAM,SAAS,MAAM,EAErB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACvD,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,YAAY,CAAC,MAAM,CAAC,EAC7B,QAAQ,EAAE,aAAa,CAAC,MAAM,CAAC,SAYhC;AA4GD;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CACvB,MAAM,EACN,MAAM,SAAS,UAAU,EACzB,MAAM,SAAS,MAAM,EACrB,MAAM,SAAS,MAAM,EAErB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EACvD,MAAM,EAAE,MAAM,GACb,KAAK,CAGP"}
@@ -1,5 +1,5 @@
1
- import type { ItemSchema, CondSchema } from "../../types/schema/static";
2
- import type { Position } from "../../types/flow/position";
1
+ import type { ItemSchema, CondSchema } from "../../types/schema/basic";
2
+ import type { Position } from "../../types/state/position";
3
3
  /**
4
4
  * Type guard for `CondSchema` objects.
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"flow.cond.d.ts","sourceRoot":"","sources":["../../../src/utils/schema/flow.cond.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,2BAA2B,CAAC;AAExE;;;;;GAKG;AACH,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,UAAU,CAE3D;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAWxE;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI,CAM5E;AAED;;;;;;GAMG;AACH,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,UAAU,CAGrE"}
1
+ {"version":3,"file":"flow.cond.d.ts","sourceRoot":"","sources":["../../../src/utils/schema/flow.cond.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,4BAA4B,CAAC;AAEzE;;;;;GAKG;AACH,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,UAAU,CAE3D;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAWxE;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI,CAM5E;AAED;;;;;;GAMG;AACH,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,UAAU,CAGrE"}
@@ -1,5 +1,5 @@
1
- import type { ItemSchema, FlowSchema } from "../../types/schema/static";
2
- import type { Position } from "../../types/flow/position";
1
+ import type { ItemSchema, FlowSchema } from "../../types/schema/basic";
2
+ import type { Position } from "../../types/state/position";
3
3
  /**
4
4
  * Type guard for `FlowSchema` objects.
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../../src/utils/schema/flow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,KAAK,EAAE,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Q,GAAG,UAAU,CAcrE;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,cAOxD"}
@@ -1,5 +1,5 @@
1
- import type { ItemSchema, ListSchema } from "../../types/schema/static";
2
- import type { Position } from "../../types/flow/position";
1
+ import type { ItemSchema, ListSchema } from "../../types/schema/basic";
2
+ import type { Position } from "../../types/state/position";
3
3
  /**
4
4
  * Type guard for `ListSchema` objects.
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"flow.list.d.ts","sourceRoot":"","sources":["../../../src/utils/schema/flow.list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,2BAA2B,CAAC;AAExE;;;;;GAKG;AACH,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,UAAU,CAE3D;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,QAAQ,GAAG,IAAI,CAKxD;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI,CAM5E;AAED;;;;;;GAMG;AACH,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,UAAU,CAGrE"}
1
+ {"version":3,"file":"flow.list.d.ts","sourceRoot":"","sources":["../../../src/utils/schema/flow.list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,4BAA4B,CAAC;AAEzE;;;;;GAKG;AACH,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,UAAU,CAE3D;AAED;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,GAAG,QAAQ,GAAG,IAAI,CAKxD;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI,CAM5E;AAED;;;;;;GAMG;AACH,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,UAAU,CAGrE"}
@@ -1,5 +1,5 @@
1
- import type { ItemSchema, LoopSchema } from "../../types/schema/static";
2
- import type { Position } from "../../types/flow/position";
1
+ import type { ItemSchema, LoopSchema } from "../../types/schema/basic";
2
+ import type { Position } from "../../types/state/position";
3
3
  /**
4
4
  * Type guard for `LoopSchema` objects.
5
5
  *
@@ -1 +1 @@
1
- {"version":3,"file":"flow.loop.d.ts","sourceRoot":"","sources":["../../../src/utils/schema/flow.loop.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAgB,MAAM,2BAA2B,CAAC;AAExE;;;;;GAKG;AACH,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,UAAU,CAE3D;AAED;;;;;;GAMG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI,CAOxE;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAClB,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,GACb,QAAQ,GAAG,IAAI,CASjB;AAED;;;;;;GAMG;AACH,wBAAgB,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,GAAG,UAAU,CAGrE"}
1
+ {"version":3,"file":"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