@judo/actions 0.43.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
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
export type { ActionType, ActionDefinition, Action, TransferData, NavigationContext, DataStore, ModelRegistry, ValidationContext, CreateDialogContext, TypedActionHandlerContext, ActionHandlerFn, ActionHandlerHook, ActionHandlerHookWithMeta, ActionHandlerFactoryProperties, BuiltInActionHandlerFactoryProperties, } from "./types";
|
|
1
|
+
export type { ActionType, ActionDefinition, Action, TransferData, NavigationContext, DataStore, ModelRegistry, ValidationContext, CreateDialogContext, TypedActionHandlerContext, ActionHandlerFn, ActionHandlerHook, ActionHandlerHookWithMeta, RowActionInput, QueryAction, TypedActionHandlerFn, ActionHandlerFactoryProperties, BuiltInActionHandlerFactoryProperties, } from "./types";
|
|
2
2
|
export { ACTION_HANDLER_FACTORY } from "./types";
|
|
3
3
|
export * from "./handlers/index";
|
|
4
|
-
export { ApiProvider, useApi, type ApiContextType, type ApiProviderProps } from "./provider/index";
|
|
4
|
+
export { ApiProvider, useApi, type ApiContextType, type ApiProviderProps, OperationFaultContext, useShowOperationFault, type ShowOperationFault, } from "./provider/index";
|
|
5
5
|
export { useActionDispatcher, useActionHandler, hasActionHandler, type UseActionDispatcherOptions, type UseActionDispatcherResult, } from "./hooks/index";
|
|
6
6
|
export { JudoRestApi, createJudoRestApi, getPathForActor, getRelationPath, getClassPath, getMutationRelationPath, getOperationPath, HEADER_SIGNED_IDENTIFIER, HEADER_MASK, HEADER_MARK_SELECTED_RANGE_ITEMS, HEADER_TOKEN, DEFAULT_COMMAND_MASK, SUFFIX_TEMPLATE, SUFFIX_GET, SUFFIX_UPDATE, SUFFIX_VALIDATE, SUFFIX_DELETE, SUFFIX_LIST, SUFFIX_RANGE, SUFFIX_CREATE, SUFFIX_SET, SUFFIX_UNSET, SUFFIX_ADD, SUFFIX_REMOVE, SUFFIX_EXPORT, } from "./api/index";
|
|
7
7
|
export type { IJudoRestApi, OperationInfo, JudoRestApiConfig, JudoRestResponse, QueryCustomizer, TransferStored, StrictTransferStored, StrictTransferData, RangeRequestBody, HttpMethod, ResponseType, DeserializationType, ServiceType, ResponseDeserializerConfig, TransferSerializer, TransferDeserializer, TemporalFieldType, TemporalFieldRegistry, FeedbackItem, DialogResult, OnDialogSubmit, OnDialogValidate, } from "./api/index";
|
|
8
|
-
export { ValidationError } from "./api/index";
|
|
8
|
+
export { ValidationError, relationItems, HttpError, getOperationFault, OPERATION_FAULT_STATUS, type OperationFault, } from "./api/index";
|
|
9
|
+
export { validationMessage, toValidationMessages, reportValidationError } from "./handlers/validation-feedback";
|
|
10
|
+
export { DEFAULT_VALIDATION_FAILED_MESSAGE, DEFAULT_VALIDATION_MESSAGES, type ValidationFailureCode, } from "./handlers/validation-messages";
|
|
9
11
|
export { createModelAwareSerializer, serializeTemporalValue } from "./api/index";
|
|
10
12
|
export { createModelAwareDeserializer, deserializeTemporalValue, parseLocalDate } from "./api/index";
|
|
11
|
-
export {
|
|
13
|
+
export { buildTemporalFieldRegistryFromModel, buildRelationTypeMapFromModel } from "./api/index";
|
|
14
|
+
export type { RelationTypeMap } from "./api/index";
|
|
15
|
+
export { getActionHandler, getTypedActionHandler, hasActionHandler as hasActionHandlerRegistry, } from "./registry/index";
|
|
12
16
|
export { executeWithLifecycle } from "./lifecycle/index";
|
|
13
17
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EACX,UAAU,EACV,gBAAgB,EAChB,MAAM,EACN,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,EACzB,eAAe,EACf,iBAAiB,EACjB,yBAAyB,EACzB,8BAA8B,EAC9B,qCAAqC,GACrC,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAGjD,cAAc,kBAAkB,CAAC;AAGjC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EACX,UAAU,EACV,gBAAgB,EAChB,MAAM,EACN,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,yBAAyB,EACzB,eAAe,EACf,iBAAiB,EACjB,yBAAyB,EACzB,cAAc,EACd,WAAW,EACX,oBAAoB,EACpB,8BAA8B,EAC9B,qCAAqC,GACrC,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAGjD,cAAc,kBAAkB,CAAC;AAGjC,OAAO,EACN,WAAW,EACX,MAAM,EACN,KAAK,cAAc,EACnB,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