@xh/hoist 73.0.0-SNAPSHOT.1747337729512 → 73.0.0-SNAPSHOT.1747346637442
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/CHANGELOG.md +5 -2
- package/build/types/desktop/cmp/appOption/AutoRefreshAppOption.d.ts +2 -2
- package/build/types/desktop/cmp/appOption/ThemeAppOption.d.ts +2 -2
- package/build/types/kit/swiper/index.d.ts +2 -2
- package/build/types/mobx/overrides.d.ts +1 -1
- package/cmp/input/HoistInputModel.ts +0 -1
- package/mobx/overrides.ts +1 -1
- package/package.json +6 -7
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -12,8 +12,11 @@
|
|
|
12
12
|
initialize a new `ViewManagerModel`.
|
|
13
13
|
* For clarity, [here is where Toolbox makes that call](https://github.com/xh/toolbox/blob/f15a8018ce36c2ae998b45724b48a16320b88e49/client-app/src/admin/AppModel.ts#L12).
|
|
14
14
|
* Requires call to `makeObservable(this)` in model constructors with `@bindable` (see below).
|
|
15
|
-
Note that there is a new runtime check on all instances of `HoistBase` to warn if this call has not
|
|
16
|
-
been made.
|
|
15
|
+
Note that there is a new runtime check on all instances of `HoistBase` to warn if this call has not
|
|
16
|
+
been made.
|
|
17
|
+
* Requires @xh/hoist-dev-utils >= 11.0
|
|
18
|
+
* Apps must also rename their `.eslintrc` file to `eslint.config.js` and use the configuration
|
|
19
|
+
found in Toolbox's `eslint.config.js` as the new base example `eslint` configuration.
|
|
17
20
|
|
|
18
21
|
### 🎁 New Features
|
|
19
22
|
|
|
@@ -123,6 +123,8 @@ export declare const autoRefreshAppOption: ({ formFieldProps, inputProps }?: Aut
|
|
|
123
123
|
unselectable?: "off" | "on";
|
|
124
124
|
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
125
125
|
is?: string;
|
|
126
|
+
exportparts?: string;
|
|
127
|
+
part?: string;
|
|
126
128
|
"aria-activedescendant"?: string;
|
|
127
129
|
"aria-atomic"?: boolean | "true" | "false";
|
|
128
130
|
"aria-autocomplete"?: "none" | "list" | "inline" | "both";
|
|
@@ -246,8 +248,6 @@ export declare const autoRefreshAppOption: ({ formFieldProps, inputProps }?: Aut
|
|
|
246
248
|
onProgressCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
247
249
|
onRateChange?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
248
250
|
onRateChangeCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
249
|
-
onResize?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
250
|
-
onResizeCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
251
251
|
onSeeked?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
252
252
|
onSeekedCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
253
253
|
onSeeking?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
@@ -121,6 +121,8 @@ export declare const themeAppOption: ({ formFieldProps, inputProps }?: ThemeAppO
|
|
|
121
121
|
unselectable?: "off" | "on";
|
|
122
122
|
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
123
123
|
is?: string;
|
|
124
|
+
exportparts?: string;
|
|
125
|
+
part?: string;
|
|
124
126
|
"aria-activedescendant"?: string;
|
|
125
127
|
"aria-atomic"?: boolean | "true" | "false";
|
|
126
128
|
"aria-autocomplete"?: "none" | "list" | "inline" | "both";
|
|
@@ -244,8 +246,6 @@ export declare const themeAppOption: ({ formFieldProps, inputProps }?: ThemeAppO
|
|
|
244
246
|
onProgressCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
245
247
|
onRateChange?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
246
248
|
onRateChangeCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
247
|
-
onResize?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
248
|
-
onResizeCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
249
249
|
onSeeked?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
250
250
|
onSeekedCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
251
251
|
onSeeking?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
@@ -3,7 +3,7 @@ import { Swiper, SwiperSlide } from 'swiper/react';
|
|
|
3
3
|
import { EffectCreative } from 'swiper/modules';
|
|
4
4
|
import './styles.scss';
|
|
5
5
|
export { Swiper, SwiperSlide, EffectCreative };
|
|
6
|
-
export declare const swiper: import("@xh/hoist/core").ElementFactory<import("react").RefAttributes<import("swiper/react").SwiperRef> & Omit<import("react").HTMLAttributes<HTMLElement>, "onClick" | "onKeyPress" | "onProgress" | "
|
|
6
|
+
export declare const swiper: import("@xh/hoist/core").ElementFactory<import("react").RefAttributes<import("swiper/react").SwiperRef> & Omit<import("react").HTMLAttributes<HTMLElement>, "onClick" | "onKeyPress" | "onProgress" | "onDoubleClick" | "onTouchEnd" | "onTouchMove" | "onTouchStart" | "onScroll" | "onTransitionEnd" | "onResize"> & import("swiper/types").SwiperOptions & {
|
|
7
7
|
tag?: string;
|
|
8
8
|
wrapperTag?: string;
|
|
9
9
|
onSwiper?: (swiper: import("swiper/types/swiper-class").default) => void;
|
|
@@ -13,10 +13,10 @@ export declare const swiper: import("@xh/hoist/core").ElementFactory<import("rea
|
|
|
13
13
|
onAutoplayResume?: (swiper: import("swiper/types/swiper-class").default) => void;
|
|
14
14
|
onAutoplayTimeLeft?: (swiper: import("swiper/types/swiper-class").default, timeLeft: number, percentage: number) => void;
|
|
15
15
|
onAutoplay?: (swiper: import("swiper/types/swiper-class").default) => void;
|
|
16
|
-
onKeyPress?: (swiper: import("swiper/types/swiper-class").default, keyCode: string) => void;
|
|
17
16
|
onHashChange?: (swiper: import("swiper/types/swiper-class").default) => void;
|
|
18
17
|
onHashSet?: (swiper: import("swiper/types/swiper-class").default) => void;
|
|
19
18
|
onScroll?: (swiper: import("swiper/types/swiper-class").default, event: WheelEvent) => void;
|
|
19
|
+
onKeyPress?: (swiper: import("swiper/types/swiper-class").default, keyCode: string) => void;
|
|
20
20
|
onNavigationHide?: (swiper: import("swiper/types/swiper-class").default) => void;
|
|
21
21
|
onNavigationShow?: (swiper: import("swiper/types/swiper-class").default) => void;
|
|
22
22
|
onNavigationPrev?: (swiper: import("swiper/types/swiper-class").default) => void;
|
|
@@ -8,7 +8,7 @@ export declare function makeObservable(target: any, annotations?: AnnotationsMap
|
|
|
8
8
|
*/
|
|
9
9
|
export declare function isObservableProp(target: any, propertyKey: string): boolean;
|
|
10
10
|
/**
|
|
11
|
-
* Check that if a class property was annotated with
|
|
11
|
+
* Check that if a class property was annotated with `@bindable` or `@observable` that
|
|
12
12
|
* makeObservable was actually called on the instance. Log error on fail.
|
|
13
13
|
*/
|
|
14
14
|
export declare function checkMakeObservable(target: any): void;
|
|
@@ -72,7 +72,6 @@ export class HoistInputModel extends HoistModel {
|
|
|
72
72
|
*/
|
|
73
73
|
get domEl(): HTMLElement {
|
|
74
74
|
const current = this.domRef.current as ReactInstance;
|
|
75
|
-
// eslint-disable-next-line no-undef
|
|
76
75
|
return (
|
|
77
76
|
!current || current instanceof Element ? current : findDOMNode(current)
|
|
78
77
|
) as HTMLElement;
|
package/mobx/overrides.ts
CHANGED
|
@@ -57,7 +57,7 @@ export function isObservableProp(target: any, propertyKey: string): boolean {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
* Check that if a class property was annotated with
|
|
60
|
+
* Check that if a class property was annotated with `@bindable` or `@observable` that
|
|
61
61
|
* makeObservable was actually called on the instance. Log error on fail.
|
|
62
62
|
*/
|
|
63
63
|
export function checkMakeObservable(target: any) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "73.0.0-SNAPSHOT.
|
|
3
|
+
"version": "73.0.0-SNAPSHOT.1747346637442",
|
|
4
4
|
"description": "Hoist add-on for building and deploying React Applications.",
|
|
5
5
|
"repository": "github:xh/hoist-react",
|
|
6
6
|
"homepage": "https://xh.io",
|
|
@@ -9,9 +9,8 @@
|
|
|
9
9
|
"license": "Apache-2.0",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "yarn lint:all",
|
|
12
|
-
"lint:all": "yarn lint:
|
|
13
|
-
"lint:
|
|
14
|
-
"lint:ts": "eslint --ext .ts,.tsx .",
|
|
12
|
+
"lint:all": "yarn lint:code && yarn lint:styles",
|
|
13
|
+
"lint:code": "eslint .",
|
|
15
14
|
"lint:styles": "stylelint \"**/*.s?(a|c)ss\"",
|
|
16
15
|
"prepare": "husky"
|
|
17
16
|
},
|
|
@@ -97,10 +96,10 @@
|
|
|
97
96
|
"@ag-grid-community/react": "31.x",
|
|
98
97
|
"@types/react": "18.x",
|
|
99
98
|
"@types/react-dom": "18.x",
|
|
100
|
-
"@xh/hoist-dev-utils": "
|
|
99
|
+
"@xh/hoist-dev-utils": "11.x",
|
|
101
100
|
"csstype": "3.x",
|
|
102
|
-
"eslint": "
|
|
103
|
-
"eslint-config-prettier": "
|
|
101
|
+
"eslint": "9.x",
|
|
102
|
+
"eslint-config-prettier": "10.x",
|
|
104
103
|
"eslint-plugin-tsdoc": "0.x",
|
|
105
104
|
"husky": "9.x",
|
|
106
105
|
"lint-staged": "15.x",
|