@judo/actions 0.44.0 → 0.45.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.
- package/dist/api/index.d.ts +4 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/json-object.d.ts +3 -0
- package/dist/api/json-object.d.ts.map +1 -0
- package/dist/api/judo-rest-api.d.ts +1 -1
- package/dist/api/judo-rest-api.d.ts.map +1 -1
- package/dist/api/model-converters.d.ts +1 -1
- package/dist/api/model-converters.d.ts.map +1 -1
- package/dist/api/model-type-maps.d.ts +50 -0
- package/dist/api/model-type-maps.d.ts.map +1 -0
- package/dist/api/operation-fault.d.ts +23 -0
- package/dist/api/operation-fault.d.ts.map +1 -0
- package/dist/api/path-builder.d.ts +1 -1
- package/dist/api/path-builder.d.ts.map +1 -1
- package/dist/api/transfer-serializer.d.ts +7 -1
- package/dist/api/transfer-serializer.d.ts.map +1 -1
- package/dist/api/types.d.ts +22 -6
- package/dist/api/types.d.ts.map +1 -1
- package/dist/handlers/action.fixtures.d.ts +25 -0
- package/dist/handlers/action.fixtures.d.ts.map +1 -0
- package/dist/handlers/autocomplete/autocomplete-handlers.d.ts.map +1 -1
- package/dist/handlers/crud/crud-handlers.d.ts +4 -11
- package/dist/handlers/crud/crud-handlers.d.ts.map +1 -1
- package/dist/handlers/crud/index.d.ts +1 -1
- package/dist/handlers/crud/index.d.ts.map +1 -1
- package/dist/handlers/form/form-handlers.d.ts.map +1 -1
- package/dist/handlers/index.d.ts +2 -2
- package/dist/handlers/index.d.ts.map +1 -1
- package/dist/handlers/navigation/navigation-handlers.d.ts.map +1 -1
- package/dist/handlers/operation/operation-handlers.d.ts.map +1 -1
- package/dist/handlers/relation/index.d.ts +1 -1
- package/dist/handlers/relation/index.d.ts.map +1 -1
- package/dist/handlers/relation/relation-handlers.d.ts +4 -1
- package/dist/handlers/relation/relation-handlers.d.ts.map +1 -1
- package/dist/handlers/selector/selector-handlers.d.ts.map +1 -1
- package/dist/handlers/validation-feedback.d.ts +40 -0
- package/dist/handlers/validation-feedback.d.ts.map +1 -0
- package/dist/handlers/validation-messages.d.ts +11 -0
- package/dist/handlers/validation-messages.d.ts.map +1 -0
- package/dist/hooks/use-action-dispatcher.d.ts +9 -3
- package/dist/hooks/use-action-dispatcher.d.ts.map +1 -1
- package/dist/index.d.ts +8 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +882 -630
- package/dist/index.js.map +1 -1
- package/dist/lifecycle/execute-with-lifecycle.d.ts +2 -2
- package/dist/lifecycle/execute-with-lifecycle.d.ts.map +1 -1
- package/dist/provider/api-context.d.ts +1 -1
- package/dist/provider/api-context.d.ts.map +1 -1
- package/dist/provider/index.d.ts +1 -0
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/operation-fault-context.d.ts +11 -0
- package/dist/provider/operation-fault-context.d.ts.map +1 -0
- package/dist/registry/action-handler-registry.d.ts +6 -1
- package/dist/registry/action-handler-registry.d.ts.map +1 -1
- package/dist/registry/index.d.ts +1 -1
- package/dist/registry/index.d.ts.map +1 -1
- package/dist/types.d.ts +64 -7
- package/dist/types.d.ts.map +1 -1
- package/package.json +7 -5
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* and allows full replacement of the execute phase.
|
|
7
7
|
*/
|
|
8
8
|
import type { ActionLifecycle } from "@judo/model-api";
|
|
9
|
-
import type { ActionHandlerContext, ActionHandlerFn } from "@judo/model-api";
|
|
9
|
+
import type { ActionHandlerContext, ActionHandlerFn, ActionResult } from "@judo/model-api";
|
|
10
10
|
import type { Action } from "../types";
|
|
11
11
|
/**
|
|
12
12
|
* Execute an action with lifecycle overrides composed around a default handler.
|
|
@@ -24,5 +24,5 @@ import type { Action } from "../types";
|
|
|
24
24
|
* @param page - The PageDefinition
|
|
25
25
|
* @returns Promise resolving to the action result
|
|
26
26
|
*/
|
|
27
|
-
export declare function executeWithLifecycle(defaultHandler: ActionHandlerFn, overrides: Partial<ActionLifecycle>, baseContext: ActionHandlerContext, action: Action): Promise<
|
|
27
|
+
export declare function executeWithLifecycle(defaultHandler: ActionHandlerFn, overrides: Partial<ActionLifecycle>, baseContext: ActionHandlerContext, action: Action): Promise<ActionResult>;
|
|
28
28
|
//# sourceMappingURL=execute-with-lifecycle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute-with-lifecycle.d.ts","sourceRoot":"","sources":["../../src/lifecycle/execute-with-lifecycle.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAA0B,MAAM,iBAAiB,CAAC;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"execute-with-lifecycle.d.ts","sourceRoot":"","sources":["../../src/lifecycle/execute-with-lifecycle.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,eAAe,EAA0B,MAAM,iBAAiB,CAAC;AAC/E,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC3F,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,oBAAoB,CACzC,cAAc,EAAE,eAAe,EAC/B,SAAS,EAAE,OAAO,CAAC,eAAe,CAAC,EACnC,WAAW,EAAE,oBAAoB,EACjC,MAAM,EAAE,MAAM,GACZ,OAAO,CAAC,YAAY,CAAC,CA4CvB"}
|
|
@@ -26,5 +26,5 @@ export interface ApiProviderProps {
|
|
|
26
26
|
* Provider for JUDO REST API client.
|
|
27
27
|
* Makes the API client available to action handlers via the useApi hook.
|
|
28
28
|
*/
|
|
29
|
-
export declare function ApiProvider({ children, api }: ApiProviderProps): import("react
|
|
29
|
+
export declare function ApiProvider({ children, api }: ApiProviderProps): import("react").JSX.Element;
|
|
30
30
|
//# sourceMappingURL=api-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-context.d.ts","sourceRoot":"","sources":["../../src/provider/api-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,2BAA2B;IAC3B,GAAG,EAAE,YAAY,CAAC;CAClB;AAID;;;;;GAKG;AACH,wBAAgB,MAAM,IAAI,YAAY,CAMrC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,oCAAoC;IACpC,GAAG,EAAE,YAAY,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,gBAAgB
|
|
1
|
+
{"version":3,"file":"api-context.d.ts","sourceRoot":"","sources":["../../src/provider/api-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B,2BAA2B;IAC3B,GAAG,EAAE,YAAY,CAAC;CAClB;AAID;;;;;GAKG;AACH,wBAAgB,MAAM,IAAI,YAAY,CAMrC;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,oCAAoC;IACpC,GAAG,EAAE,YAAY,CAAC;CAClB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,gBAAgB,+BAG9D"}
|
package/dist/provider/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAChG,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { OperationFault } from "../api/operation-fault";
|
|
2
|
+
/** Shows a modeled operation fault (React `useFaultDialog`). */
|
|
3
|
+
export type ShowOperationFault = (fault: OperationFault) => void;
|
|
4
|
+
/**
|
|
5
|
+
* Supplies the operation fault presenter to action handlers. `useActionDispatcher`
|
|
6
|
+
* adds it to the action context as `showOperationFault`; the UI layer provides it
|
|
7
|
+
* (`@judo/components` `OperationFaultProvider`) so `@judo/actions` stays UI-free.
|
|
8
|
+
*/
|
|
9
|
+
export declare const OperationFaultContext: import("react").Context<ShowOperationFault | null>;
|
|
10
|
+
export declare function useShowOperationFault(): ShowOperationFault | null;
|
|
11
|
+
//# sourceMappingURL=operation-fault-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-fault-context.d.ts","sourceRoot":"","sources":["../../src/provider/operation-fault-context.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D,gEAAgE;AAChE,MAAM,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;AAEjE;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,oDAAiD,CAAC;AAEpF,wBAAgB,qBAAqB,IAAI,kBAAkB,GAAG,IAAI,CAEjE"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import type { Action, ActionHandlerHook } from "../types";
|
|
1
|
+
import type { Action, ActionHandlerHook, TypedActionHandlerHook } from "../types";
|
|
2
2
|
/**
|
|
3
3
|
* Get the handler for an action.
|
|
4
4
|
* Returns the handler hook if found, undefined otherwise.
|
|
5
5
|
*/
|
|
6
6
|
export declare function getActionHandler(action: Action): ActionHandlerHook | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Get the built-in handler for an action with its typed context, so a caller
|
|
9
|
+
* that builds the context itself gets it checked against `TypedActionHandlerContext`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getTypedActionHandler(action: Action): TypedActionHandlerHook | undefined;
|
|
7
12
|
/**
|
|
8
13
|
* Check if a handler exists for the given action.
|
|
9
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-handler-registry.d.ts","sourceRoot":"","sources":["../../src/registry/action-handler-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"action-handler-registry.d.ts","sourceRoot":"","sources":["../../src/registry/action-handler-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAA6B,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAgI7G;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAI9E;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,sBAAsB,GAAG,SAAS,CAExF;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAExD"}
|
package/dist/registry/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { getActionHandler, hasActionHandler } from "./action-handler-registry";
|
|
1
|
+
export { getActionHandler, getTypedActionHandler, hasActionHandler } from "./action-handler-registry";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/registry/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/registry/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -10,17 +10,18 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export type { Action, ActionDefinition, Application } from "@judo/model-api";
|
|
12
12
|
export { ACTION_HANDLER_FACTORY } from "@judo/model-api";
|
|
13
|
-
import type {
|
|
13
|
+
import type { TFunction } from "i18next";
|
|
14
|
+
import type { Action, ActionResult, Application, ErrorHandlerInterceptorHook, PageContainer, TransferIdentity } from "@judo/model-api";
|
|
15
|
+
import type { OperationFault } from "./api/operation-fault";
|
|
16
|
+
import type { QueryCustomizer } from "./api/types";
|
|
14
17
|
/**
|
|
15
18
|
* Action types supported by the action handlers.
|
|
16
19
|
*/
|
|
17
20
|
export type ActionType = "BackActionDefinition" | "OpenPageActionDefinition" | "RowOpenPageActionDefinition" | "CancelActionDefinition" | "OpenFormActionDefinition" | "OpenCreateFormActionDefinition" | "OpenOperationInputFormActionDefinition" | "OpenSelectorActionDefinition" | "OpenAddSelectorActionDefinition" | "OpenSetSelectorActionDefinition" | "OpenOperationInputSelectorActionDefinition" | "SelectorRangeActionDefinition" | "RefreshActionDefinition" | "CreateActionDefinition" | "UpdateActionDefinition" | "DeleteActionDefinition" | "BulkDeleteActionDefinition" | "RowDeleteActionDefinition" | "GetTemplateActionDefinition" | "SetActionDefinition" | "UnsetActionDefinition" | "AddActionDefinition" | "RemoveActionDefinition" | "BulkRemoveActionDefinition" | "ClearActionDefinition" | "RefreshRelationActionDefinition" | "FilterRelationActionDefinition" | "FilterActionDefinition" | "ExportActionDefinition" | "InlineCreateRowActionDefinition" | "CallOperationActionDefinition" | "BulkCallOperationActionDefinition" | "InputFormCallOperationActionDefinition" | "InputSelectorCallOperationActionDefinition" | "ParameterlessCallOperationActionDefinition" | "AutocompleteRangeActionDefinition" | "AutocompleteSetActionDefinition" | "AutocompleteAddActionDefinition" | "PreFetchActionDefinition" | "CustomActionDefinition";
|
|
18
21
|
/**
|
|
19
|
-
* Transfer data with identifier.
|
|
20
|
-
*
|
|
22
|
+
* Transfer data with identifier. The identity field comes from the canonical `TransferIdentity`.
|
|
21
23
|
*/
|
|
22
|
-
export interface TransferData {
|
|
23
|
-
__identifier?: string;
|
|
24
|
+
export interface TransferData extends Pick<TransferIdentity, "__identifier"> {
|
|
24
25
|
[key: string]: unknown;
|
|
25
26
|
}
|
|
26
27
|
/**
|
|
@@ -68,13 +69,23 @@ export interface NavigationContext {
|
|
|
68
69
|
/**
|
|
69
70
|
* Data store interface for transfer operations.
|
|
70
71
|
*/
|
|
72
|
+
/**
|
|
73
|
+
* The store state a `getSnapshot` selector reads: each transfer's current data
|
|
74
|
+
* and whether it has unsaved edits. `@judo/core`'s `DataStoreState` has this shape.
|
|
75
|
+
*/
|
|
76
|
+
export interface DataStoreSnapshot {
|
|
77
|
+
transfers: ReadonlyMap<string, {
|
|
78
|
+
data: TransferData | null;
|
|
79
|
+
isDirty?: boolean;
|
|
80
|
+
}>;
|
|
81
|
+
}
|
|
71
82
|
export interface DataStore {
|
|
72
83
|
setTransferLoading(id: string, loading: boolean): void;
|
|
73
84
|
setTransferData<T extends Record<string, unknown> = Record<string, unknown>>(id: string, data: TransferData & T): void;
|
|
74
85
|
setTransferError(id: string, error: Error): void;
|
|
75
86
|
clearTransfer(id: string): void;
|
|
76
87
|
resetTransfer(id: string): void;
|
|
77
|
-
getSnapshot<T>(selector: (state:
|
|
88
|
+
getSnapshot<T>(selector: (state: DataStoreSnapshot) => T): T;
|
|
78
89
|
updateTransferFields<T extends Record<string, unknown> = Record<string, unknown>>(id: string, updates: Partial<T>): void;
|
|
79
90
|
}
|
|
80
91
|
/**
|
|
@@ -106,6 +117,8 @@ export interface ValidationContext {
|
|
|
106
117
|
clearError(fieldId: string): void;
|
|
107
118
|
/** Touch all fields (mark as visited/modified) */
|
|
108
119
|
touchAll?(): void;
|
|
120
|
+
/** Current error of a field (used by the pre-save check) */
|
|
121
|
+
getError?(fieldId: string): string | null;
|
|
109
122
|
}
|
|
110
123
|
/**
|
|
111
124
|
* Notification service interface for showing toast notifications.
|
|
@@ -203,6 +216,19 @@ export interface TypedActionHandlerContext {
|
|
|
203
216
|
* Only relevant when pageType is VIEW.
|
|
204
217
|
*/
|
|
205
218
|
isEditMode?: boolean;
|
|
219
|
+
/**
|
|
220
|
+
* Data-store id of the transfer that owns an eager table or link. Eager rows
|
|
221
|
+
* live inside that transfer, so handlers read and update them there.
|
|
222
|
+
*/
|
|
223
|
+
parentTransferId?: string;
|
|
224
|
+
/** Name of the relation on `parentTransferId` that holds the eager rows. */
|
|
225
|
+
relationName?: string;
|
|
226
|
+
/**
|
|
227
|
+
* Asks the host page to reload its data. Provided by the page or table that
|
|
228
|
+
* dispatched the action (`additionalContext`), and captured by handlers whose
|
|
229
|
+
* work finishes inside a dialog that has no refresh of its own.
|
|
230
|
+
*/
|
|
231
|
+
refreshPage?: () => void;
|
|
206
232
|
/**
|
|
207
233
|
* Whether this action was triggered from a page-level button (dialog footer).
|
|
208
234
|
* Page actions bypass certain restrictions that apply to nested operations.
|
|
@@ -228,13 +254,44 @@ export interface TypedActionHandlerContext {
|
|
|
228
254
|
* `@judo/core` dependency.
|
|
229
255
|
*/
|
|
230
256
|
errorHandlerInterceptor?: ErrorHandlerInterceptorHook;
|
|
257
|
+
/**
|
|
258
|
+
* Opens the operation fault dialog for a modeled fault (HTTP 422). Added by
|
|
259
|
+
* `useActionDispatcher` from `OperationFaultContext`; absent outside that provider.
|
|
260
|
+
*/
|
|
261
|
+
showOperationFault?: (fault: OperationFault) => void;
|
|
262
|
+
/**
|
|
263
|
+
* i18next `t`, threaded from the rendering layer so validation messages use the
|
|
264
|
+
* React template's `judo.error.validation-failed.*` keys. Always set by
|
|
265
|
+
* `useActionDispatcher`.
|
|
266
|
+
*/
|
|
267
|
+
translate: TFunction;
|
|
268
|
+
/**
|
|
269
|
+
* Container of the page the action runs on. Create/Update/InputForm handlers walk it
|
|
270
|
+
* for React's pre-save check (`requiredBy` fields, range errors).
|
|
271
|
+
*/
|
|
272
|
+
pageContainer?: PageContainer;
|
|
231
273
|
}
|
|
232
274
|
export type { ActionHandlerFn, ActionHandlerHook } from "@judo/model-api";
|
|
233
275
|
/**
|
|
234
276
|
* Typed handler function for built-in handlers.
|
|
235
277
|
* Uses TypedActionHandlerContext instead of base ActionHandlerContext.
|
|
236
278
|
*/
|
|
237
|
-
export type TypedActionHandlerFn = (context: TypedActionHandlerContext) => Promise<
|
|
279
|
+
export type TypedActionHandlerFn = (context: TypedActionHandlerContext) => Promise<ActionResult>;
|
|
280
|
+
/**
|
|
281
|
+
* What a row remove or row delete handler reads from its action: the definition
|
|
282
|
+
* and the relation that owns the row. A table outside a page has no modeled
|
|
283
|
+
* `Action` for these buttons, so it passes just these fields.
|
|
284
|
+
*/
|
|
285
|
+
export type RowActionInput = Pick<Action, "actionDefinition" | "ownerDataElement">;
|
|
286
|
+
/**
|
|
287
|
+
* An action that carries the table's current query (sort, paging, filter, mask),
|
|
288
|
+
* and whether the server should count the records. Tables and toolbars dispatch
|
|
289
|
+
* it to refresh or list; the CRUD handlers read both fields.
|
|
290
|
+
*/
|
|
291
|
+
export type QueryAction = Action & {
|
|
292
|
+
queryCustomizer?: QueryCustomizer;
|
|
293
|
+
countRecords?: boolean;
|
|
294
|
+
};
|
|
238
295
|
/**
|
|
239
296
|
* Typed handler hook for built-in handlers.
|
|
240
297
|
* Returns a handler that uses TypedActionHandlerContext.
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAGzD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,YAAY,EAAE,MAAM,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAGzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EACX,MAAM,EACN,YAAY,EACZ,WAAW,EACX,2BAA2B,EAC3B,aAAa,EACb,gBAAgB,EAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD;;GAEG;AACH,MAAM,MAAM,UAAU,GAEnB,sBAAsB,GACtB,0BAA0B,GAC1B,6BAA6B,GAC7B,wBAAwB,GAExB,0BAA0B,GAC1B,gCAAgC,GAChC,wCAAwC,GAExC,8BAA8B,GAC9B,iCAAiC,GACjC,iCAAiC,GACjC,4CAA4C,GAC5C,+BAA+B,GAE/B,yBAAyB,GACzB,wBAAwB,GACxB,wBAAwB,GACxB,wBAAwB,GACxB,4BAA4B,GAC5B,2BAA2B,GAC3B,6BAA6B,GAE7B,qBAAqB,GACrB,uBAAuB,GACvB,qBAAqB,GACrB,wBAAwB,GACxB,4BAA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4E;IAC5E,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,qCAAqC;IACrD,2EAA2E;IAC3E,UAAU,EAAE,MAAM,CAAC;IACnB,mCAAmC;IACnC,OAAO,EAAE,IAAI,CAAC;CACd"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@judo/actions",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.45.0",
|
|
4
4
|
"license": "EPL-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,15 +26,17 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@judo/model-api": "0.
|
|
29
|
+
"@judo/model-api": "0.45.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@testing-library/react": "^16.3.
|
|
33
|
-
"@types/react": "^19.
|
|
32
|
+
"@testing-library/react": "^16.3.3",
|
|
33
|
+
"@types/react": "^19.3.3",
|
|
34
|
+
"i18next": "^27.2.10",
|
|
34
35
|
"typescript": "^7.0.2",
|
|
35
|
-
"vitest": "^4.1.
|
|
36
|
+
"vitest": "^4.1.12"
|
|
36
37
|
},
|
|
37
38
|
"peerDependencies": {
|
|
39
|
+
"i18next": "^27.2.10",
|
|
38
40
|
"react": "^19.0.0"
|
|
39
41
|
},
|
|
40
42
|
"scripts": {
|