@etsoo/react 1.7.57 → 1.7.59

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2004-2024 ETSOO® (亿速思维 ®), https://www.etsoo.com
3
+ Copyright (c) 2004-2024 ETSOO ® (亿速思维 ®), https://etsoo.com, https://etsoo.nz
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { NotificationContent, NotificationReturn } from '@etsoo/notificationbase';
3
2
  import { NotificationReactCallProps } from '../notifier/Notifier';
4
3
  /**
@@ -22,7 +22,7 @@ export declare namespace ReactUtils {
22
22
  * @param value New value
23
23
  * @param cancelable Cancelable
24
24
  */
25
- function triggerChange(input: HTMLInputElement, value: string, cancelable: boolean): void;
25
+ function triggerChange(input: HTMLInputElement, value: string, cancelable?: boolean): void;
26
26
  /**
27
27
  * Update refs
28
28
  * @param refs Refs
@@ -53,7 +53,7 @@ export var ReactUtils;
53
53
  * @param value New value
54
54
  * @param cancelable Cancelable
55
55
  */
56
- function triggerChange(input, value, cancelable) {
56
+ function triggerChange(input, value, cancelable = false) {
57
57
  // Radio type not supported
58
58
  if (input.type === 'radio')
59
59
  return;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CustomFieldData, CustomFieldProps, CustomFieldRef, ICustomField } from '@etsoo/appscript';
3
2
  /**
4
3
  * React custom field interface
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IAction, ICulture } from '@etsoo/appscript';
3
2
  import { DataTypes } from '@etsoo/shared';
4
3
  import { IProviderProps, IUpdate } from './IState';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IAction, IState } from '@etsoo/appscript';
3
2
  import { IProviderProps, IUpdate } from './IState';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IAction, IUser, IUserData } from '@etsoo/appscript';
3
2
  import { IProviderProps, IUpdate } from './IState';
4
3
  /**
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  /**
3
2
  * Combined refs
4
3
  * @param refs Refs
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  interface states {
2
3
  count: number;
3
4
  indices: number[];
@@ -10,7 +11,7 @@ interface states {
10
11
  * @param equalCallback Equall callback
11
12
  */
12
13
  export declare function useDimensions(elements: number, updateCallback?: (target: Element, rect: DOMRect) => boolean | void, miliseconds?: number, equalCallback?: (d1?: DOMRect, d2?: DOMRect) => boolean): {
13
- dimensions: [(instance: Element | null) => void, (Element | undefined)?, (DOMRect | undefined)?][];
14
+ dimensions: [(instance: Element | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES], (Element | undefined)?, (DOMRect | undefined)?][];
14
15
  state: states;
15
16
  };
16
17
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/react",
3
- "version": "1.7.57",
3
+ "version": "1.7.59",
4
4
  "description": "TypeScript ReactJs UI Independent Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -47,24 +47,24 @@
47
47
  "dependencies": {
48
48
  "@dnd-kit/core": "^6.1.0",
49
49
  "@dnd-kit/sortable": "^8.0.0",
50
- "@emotion/css": "^11.11.2",
51
- "@emotion/react": "^11.11.4",
52
- "@emotion/styled": "^11.11.5",
53
- "@etsoo/appscript": "^1.4.99",
54
- "@etsoo/notificationbase": "^1.1.43",
55
- "@etsoo/shared": "^1.2.42",
50
+ "@emotion/css": "^11.13.0",
51
+ "@emotion/react": "^11.13.0",
52
+ "@emotion/styled": "^11.13.0",
53
+ "@etsoo/appscript": "^1.5.1",
54
+ "@etsoo/notificationbase": "^1.1.46",
55
+ "@etsoo/shared": "^1.2.44",
56
56
  "react": "^18.3.1",
57
57
  "react-dom": "^18.3.1",
58
- "react-router-dom": "^6.23.1",
58
+ "react-router-dom": "^6.26.0",
59
59
  "react-window": "^1.8.10"
60
60
  },
61
61
  "devDependencies": {
62
- "@babel/cli": "^7.24.7",
63
- "@babel/core": "^7.24.7",
62
+ "@babel/cli": "^7.24.8",
63
+ "@babel/core": "^7.25.2",
64
64
  "@babel/plugin-transform-runtime": "^7.24.7",
65
- "@babel/preset-env": "^7.24.7",
66
- "@babel/runtime-corejs3": "^7.24.7",
67
- "@testing-library/jest-dom": "^6.4.6",
65
+ "@babel/preset-env": "^7.25.3",
66
+ "@babel/runtime-corejs3": "^7.25.0",
67
+ "@testing-library/jest-dom": "^6.4.8",
68
68
  "@testing-library/react": "^16.0.0",
69
69
  "@types/jest": "^29.5.12",
70
70
  "@types/react": "^18.3.3",
@@ -72,7 +72,7 @@
72
72
  "@types/react-window": "^1.8.8",
73
73
  "jest": "^29.7.0",
74
74
  "jest-environment-jsdom": "^29.7.0",
75
- "ts-jest": "^29.1.4",
76
- "typescript": "^5.4.5"
75
+ "ts-jest": "^29.2.4",
76
+ "typescript": "^5.5.4"
77
77
  }
78
78
  }
@@ -61,7 +61,7 @@ export namespace ReactUtils {
61
61
  export function triggerChange(
62
62
  input: HTMLInputElement,
63
63
  value: string,
64
- cancelable: boolean
64
+ cancelable: boolean = false
65
65
  ) {
66
66
  // Radio type not supported
67
67
  if (input.type === 'radio') return;