@destyler/edit 0.2.13 → 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 (2) hide show
  1. package/dist/index.d.mts +4 -4
  2. package/package.json +10 -7
package/dist/index.d.mts CHANGED
@@ -2,7 +2,7 @@ import { FocusOutsideEvent, InteractOutsideEvent, InteractOutsideHandlers, Point
2
2
  import { AnyEventObject, Machine, XSend, XState } from "@destyler/xstate";
3
3
  import { CommonProperties, DirectionProperty, NormalizeProps, PropTypes, RequiredBy } from "@destyler/types";
4
4
  //#region src/anatomy.d.ts
5
- export declare const anatomy: import("@destyler/anatomy").AnatomyInstance<"preview" | "root" | "area" | "label" | "input" | "control" | "submitTrigger" | "cancelTrigger" | "editTrigger">;
5
+ export declare const anatomy: any;
6
6
  //#endregion
7
7
  //#region src/types.d.ts
8
8
  interface ValueChangeDetails {
@@ -225,10 +225,10 @@ interface MachineApi<T extends PropTypes = PropTypes> {
225
225
  export declare function connect<T extends PropTypes>(state: State, send: Send, normalize: NormalizeProps<T>): MachineApi<T>;
226
226
  //#endregion
227
227
  //#region src/machine.d.ts
228
- export declare function machine(userContext: UserDefinedContext): import("@destyler/xstate").Machine<MachineContext, MachineState, import("@destyler/xstate").AnyEventObject>;
228
+ export declare function machine(userContext: UserDefinedContext): any;
229
229
  //#endregion
230
230
  //#region src/props.d.ts
231
- export declare const props: ("edit" | "id" | "ids" | "invalid" | "name" | "form" | "autoResize" | "activationMode" | "submitMode" | "selectOnFocus" | "value" | "defaultValue" | "maxLength" | "disabled" | "readOnly" | "required" | "onValueChange" | "onValueRevert" | "onValueCommit" | "onEditChange" | "placeholder" | "translations" | "finalFocusEl" | "dir" | "getRootNode" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside")[];
232
- export declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "edit" | "id" | "ids" | "invalid" | "name" | "form" | "autoResize" | "activationMode" | "submitMode" | "selectOnFocus" | "value" | "defaultValue" | "maxLength" | "disabled" | "readOnly" | "required" | "onValueChange" | "onValueRevert" | "onValueCommit" | "onEditChange" | "placeholder" | "translations" | "finalFocusEl" | "dir" | "getRootNode" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside">];
231
+ export declare const props: any;
232
+ export declare const splitProps: any;
233
233
  //#endregion
234
234
  export type { ActivationMode, MachineApi as Api, UserDefinedContext as Context, EditChangeDetails, ElementIds, FocusOutsideEvent, InteractOutsideEvent, IntlTranslations, PointerDownOutsideEvent, Service, SubmitMode, ValueChangeDetails };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@destyler/edit",
3
3
  "type": "module",
4
- "version": "0.2.13",
4
+ "version": "0.3.0",
5
5
  "description": "a component that allows users to edit text in place.",
6
6
  "author": "Elone Hoo <elonehoo@gmail.com>",
7
7
  "license": "MIT",
@@ -21,13 +21,16 @@
21
21
  "*.d.ts",
22
22
  "dist"
23
23
  ],
24
+ "engines": {
25
+ "node": ">=22.22.3"
26
+ },
24
27
  "dependencies": {
25
- "@destyler/anatomy": "0.2.13",
26
- "@destyler/dom": "0.2.13",
27
- "@destyler/interact-outside": "0.2.13",
28
- "@destyler/types": "0.2.13",
29
- "@destyler/utils": "0.2.13",
30
- "@destyler/xstate": "0.2.13"
28
+ "@destyler/anatomy": "0.3.0",
29
+ "@destyler/dom": "0.3.0",
30
+ "@destyler/interact-outside": "0.3.0",
31
+ "@destyler/types": "0.3.0",
32
+ "@destyler/utils": "0.3.0",
33
+ "@destyler/xstate": "0.3.0"
31
34
  },
32
35
  "publishConfig": {
33
36
  "access": "public"