@xh/hoist 71.0.0-SNAPSHOT.1735842875776 → 71.0.0-SNAPSHOT.1735861709598

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 CHANGED
@@ -59,6 +59,8 @@
59
59
 
60
60
  ### 📚 Libraries
61
61
 
62
+ * @azure/msal-browser `3.27 → 3.28`
63
+ * dompurify `3.1 → 3.2`
62
64
  * react-grid-layout `1.4.3 → 1.5.0`
63
65
 
64
66
  ## v70.0.0 - 2024-11-15
@@ -11,9 +11,9 @@ export interface ViewCreateSpec {
11
11
  value: PlainObject;
12
12
  }
13
13
  export interface ViewUpdateSpec {
14
- name: string;
15
- group: string;
16
- description: string;
14
+ name?: string;
15
+ group?: string;
16
+ description?: string;
17
17
  isShared?: boolean;
18
18
  isDefaultPinned?: boolean;
19
19
  }
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react" />
3
+ /// <reference types="trusted-types" />
3
4
  import { SwitchInputProps } from '@xh/hoist/desktop/cmp/input';
4
5
  import { FormFieldProps } from '@xh/hoist/desktop/cmp/form';
5
6
  import '@xh/hoist/desktop/register';
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  /// <reference types="react" />
3
+ /// <reference types="trusted-types" />
3
4
  import { ButtonGroupInputProps } from '@xh/hoist/desktop/cmp/input';
4
5
  import { FormFieldProps } from '@xh/hoist/desktop/cmp/form';
5
6
  import '@xh/hoist/desktop/register';
@@ -37,9 +37,9 @@ export interface ViewCreateSpec {
37
37
  }
38
38
 
39
39
  export interface ViewUpdateSpec {
40
- name: string;
41
- group: string;
42
- description: string;
40
+ name?: string;
41
+ group?: string;
42
+ description?: string;
43
43
  isShared?: boolean;
44
44
  isDefaultPinned?: boolean;
45
45
  }
@@ -8,7 +8,7 @@
8
8
  import {FormModel} from '@xh/hoist/cmp/form';
9
9
  import {fragment, p, strong} from '@xh/hoist/cmp/layout';
10
10
  import {HoistModel, managed, TaskObserver, XH} from '@xh/hoist/core';
11
- import {capitalize} from 'lodash';
11
+ import {capitalize, isUndefined} from 'lodash';
12
12
  import {ManageDialogModel} from './ManageDialogModel';
13
13
  import {makeObservable} from '@xh/hoist/mobx';
14
14
  import {ViewInfo} from '@xh/hoist/cmp/viewmanager';
@@ -55,14 +55,14 @@ export class ViewPanelModel extends HoistModel {
55
55
 
56
56
  async saveAsync() {
57
57
  const {parent, view, formModel} = this,
58
- {name, group, description, isDefaultPinned, isShared} = formModel.getData(),
58
+ updates = formModel.getData(true),
59
59
  isValid = await formModel.validateAsync(),
60
60
  isDirty = formModel.isDirty;
61
61
 
62
62
  if (!isValid || !isDirty) return;
63
63
 
64
- if (view.isOwned && view.isShared != isShared) {
65
- const msg: ReactNode = !isShared
64
+ if (view.isOwned && !isUndefined(updates.isShared)) {
65
+ const msg: ReactNode = !updates.isShared
66
66
  ? `Your ${view.typedName} will no longer be visible to all other ${XH.appName} users.`
67
67
  : `Your ${view.typedName} will become visible to all other ${XH.appName} users.`;
68
68
  const msgs = [msg, strong('Are you sure you want to proceed?')];
@@ -79,13 +79,7 @@ export class ViewPanelModel extends HoistModel {
79
79
  if (!confirmed) return;
80
80
  }
81
81
 
82
- await parent.updateAsync(view, {
83
- name,
84
- group,
85
- description,
86
- isShared,
87
- isDefaultPinned
88
- });
82
+ await parent.updateAsync(view, updates);
89
83
  }
90
84
 
91
85
  //------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "71.0.0-SNAPSHOT.1735842875776",
3
+ "version": "71.0.0-SNAPSHOT.1735861709598",
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",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@auth0/auth0-spa-js": "~2.1.3",
34
- "@azure/msal-browser": "~3.27.0",
34
+ "@azure/msal-browser": "~3.28.0",
35
35
  "@blueprintjs/core": "^5.10.5",
36
36
  "@blueprintjs/datetime": "^5.3.7",
37
37
  "@blueprintjs/datetime2": "^2.3.7",
@@ -50,7 +50,7 @@
50
50
  "codemirror": "~5.65.0",
51
51
  "core-js": "^3.0",
52
52
  "debounce-promise": "~3.1.0",
53
- "dompurify": "~3.1.1",
53
+ "dompurify": "~3.2.3",
54
54
  "downloadjs": "~1.4.7",
55
55
  "fast-deep-equal": "~3.1.1",
56
56
  "filesize": "~6.4.0",
@@ -109,7 +109,7 @@
109
109
  "react": "~18.2.0",
110
110
  "react-dom": "~18.2.0",
111
111
  "stylelint": "16.x",
112
- "stylelint-config-standard-scss": "13.x",
112
+ "stylelint-config-standard-scss": "14.x",
113
113
  "type-fest": "4.x",
114
114
  "typescript": "~5.1.6"
115
115
  },