@xh/hoist 67.0.0-SNAPSHOT.1725050021281 → 67.0.0-SNAPSHOT.1725050936701

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
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## 67.0.0-SNAPSHOT - unreleased
4
4
 
5
+ ### 💥 Breaking Changes (upgrade difficulty: 🟢 LOW - Hoist Core update only)
6
+
7
+ * Requires `hoist-core >= 21.0`.
8
+
5
9
  ### 🎁 New Features
6
10
 
7
11
  * Added support for Correlation IDs across fetch requests and error / activity tracking:
@@ -15,31 +19,28 @@
15
19
  new `FetchOptions.track` API (see below).
16
20
  * If set on a fetch request, Correlation IDs are passed through to downstream error reporting
17
21
  and are available for review in the Admin Console.
18
- * New `FetchOptions.track` - specify `TrackOptions` or message `string` to track a request via
19
- Hoist activity tracking. The request's Correlation ID and LoadSpec will be included automatically.
20
- * New global interceptors on `FetchService`. See `FetchService.addInterceptor()`.
21
- * New property `FetchOptions.asJson` to instruct `FetchService` to decode an HTTP response as JSON.
22
+ * Added `FetchOptions.track` as streamlined syntax to track a request via Hoist activity tracking.
23
+ Prefer this option (vs. a chained `.track()` call) to relay the request's `correlationId` and
24
+ `loadSpec` automatically.
25
+ * Added `FetchOptions.asJson` to instruct `FetchService` to decode an HTTP response as JSON.
22
26
  Note that `FetchService` methods suffixed with `Json` will set this property automatically.
27
+ * Added global interceptors on `FetchService`. See `FetchService.addInterceptor()`.
23
28
  * `GridModel` will now accept `contextMenu: false` to omit context menus.
24
- * New bindable property `AppContainerModel.intializingLoadMaskMessage` to allow apps to customize
25
- the loading mask message shown during app initialization.
29
+ * Added bindable `AppContainerModel.intializingLoadMaskMessage` to allow apps to customize the
30
+ load mask message shown during app initialization.
26
31
  * Enhanced `select` component with new `emptyValue` prop, allowing for a custom value to be returned
27
- when the control is empty (vs default of `null`). Expected usage is `[]` when `enableMulti:true`.
28
- * New `GroupingChooserModel.setDimensions()` API, to support updating available dimensions on an
32
+ when the control is empty (vs `null`). Expected usage is `[]` when `enableMulti:true`.
33
+ * Added `GroupingChooserModel.setDimensions()` API, to support updating available dimensions on an
29
34
  already constructed `GroupingChooserModel`.
30
35
 
31
36
  ### 🐞 Bug Fixes
32
37
 
33
- * Fixed bug where a role with a dot in its name could not be deleted.
34
- * Fixed `SelectEditor` to ensure new value is flushed before editing stops.
35
-
36
- ### 💥 Breaking Changes
38
+ * Fixed Admin Console bug where a role with a dot in its name could not be deleted.
39
+ * Fixed inline `SelectEditor` to ensure new value is flushed before grid editing stops.
37
40
 
38
- * Requires `hoist-core >= 21.0`.
39
-
40
- ### ⚙️ Technical
41
+ ### Styles
41
42
 
42
- * Remove context menus from column choosers.
43
+ * Added CSS variables to support customization of `Badge` component styling.
43
44
 
44
45
  ### 📚 Libraries
45
46
 
@@ -10,16 +10,16 @@
10
10
  justify-content: center;
11
11
  align-items: center;
12
12
  align-self: center;
13
- font-size: 0.75em;
13
+ font-size: var(--xh-badge-font-size);
14
14
  font-weight: bold;
15
- border-radius: 4px;
15
+ border-radius: var(--xh-badge-border-radius);
16
16
  margin-left: 5px;
17
- padding: 0 4px;
18
- height: 1.6em;
17
+ padding: var(--xh-badge-padding);
18
+ height: var(--xh-badge-height);
19
19
  width: fit-content;
20
- min-width: 15px;
21
- background-color: var(--xh-blue-gray);
22
- color: white;
20
+ min-width: var(--xh-badge-min-width);
21
+ background-color: var(--xh-badge-bg);
22
+ color: var(--xh-badge-text-color);
23
23
 
24
24
  &--compact {
25
25
  font-size: 0.5em;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "67.0.0-SNAPSHOT.1725050021281",
3
+ "version": "67.0.0-SNAPSHOT.1725050936701",
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",
package/styles/vars.scss CHANGED
@@ -254,6 +254,16 @@ body {
254
254
  --xh-bg-highlight: var(--bg-highlight, hsl(200, 50%, 27%));
255
255
  }
256
256
 
257
+ //-----------------------------------------
258
+ // Badges
259
+ //-----------------------------------------
260
+ --xh-badge-bg: var(--badge-bg, var(--xh-blue-gray));
261
+ --xh-badge-border-radius: var(--badge-border-radius, var(--xh-border-radius-px));
262
+ --xh-badge-font-size: var(--badge-font-size, 0.75em);
263
+ --xh-badge-height: var(--badge-height, 1.6em);
264
+ --xh-badge-min-width: var(--badge-min-width, 15px);
265
+ --xh-badge-padding: var(--badge-padding, #{0 4px});
266
+ --xh-badge-text-color: var(--badge-text-color, white);
257
267
 
258
268
  //------------------------
259
269
  // Borders