@xh/hoist 73.0.0-SNAPSHOT.1747231011044 → 73.0.0-SNAPSHOT.1747323994993
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 +2 -0
- package/cmp/input/HoistInputModel.ts +0 -1
- package/mobx/overrides.ts +10 -4
- package/package.json +6 -7
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
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
|
+
* Requires @xh/hoist-dev-utils >= 11.0
|
|
16
|
+
* Apps must also rename their .eslintrc file to eslint.client.cjs and copy the configuration found in Toolbox.
|
|
15
17
|
|
|
16
18
|
### 🎁 New Features
|
|
17
19
|
|
|
@@ -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
|
@@ -23,10 +23,16 @@ export function makeObservable(
|
|
|
23
23
|
options?: CreateObservableOptions
|
|
24
24
|
) {
|
|
25
25
|
// Finish creating 'bindable' properties for this instance.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
forEach(target._xhBindableProperties, ({isRef}, name) => {
|
|
27
|
+
const propName = `_${name}_bindable`;
|
|
28
|
+
|
|
29
|
+
// makeObservable is called by each constructor in the class hierarchy.
|
|
30
|
+
// Don't process the property before initialized...or if its already processed
|
|
31
|
+
if (!target.hasOwnProperty(name) || target.hasOwnProperty(propName)) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const initVal = target[name];
|
|
30
36
|
target[propName] = isRef ? observable.box(initVal, {deep: false}) : observable.box(initVal);
|
|
31
37
|
Object.defineProperty(target, name, {
|
|
32
38
|
get() {
|
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.1747323994993",
|
|
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.0.0-SNAPSHOT.1747323244863",
|
|
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",
|