@homebound/beam 2.169.1 → 2.170.1
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.
|
@@ -665,7 +665,7 @@ function toContent(maybeContent, isHeader, canSortColumn, isClientSideSorting, s
|
|
|
665
665
|
content =
|
|
666
666
|
isGridCellContent(maybeContent) && !!maybeContent.onClick
|
|
667
667
|
? (0, getInteractiveElement_1.getButtonOrLink)(content, maybeContent.onClick, {
|
|
668
|
-
css: Css_1.Css.maxw100.lightBlue700.if(((_a = style === null || style === void 0 ? void 0 : style.presentationSettings) === null || _a === void 0 ? void 0 : _a.wrap) === false).truncate.$,
|
|
668
|
+
css: Css_1.Css.maxw100.lightBlue700.ta("inherit").if(((_a = style === null || style === void 0 ? void 0 : style.presentationSettings) === null || _a === void 0 ? void 0 : _a.wrap) === false).truncate.$,
|
|
669
669
|
})
|
|
670
670
|
: content;
|
|
671
671
|
if (content && typeof content === "string" && isHeader && canSortColumn) {
|
|
@@ -23,7 +23,7 @@ function Menu(props) {
|
|
|
23
23
|
}, [tree]);
|
|
24
24
|
const state = (0, react_stately_1.useTreeState)({ children: menuChildren, items: tree.items.map((i) => i.value), selectionMode: "none" });
|
|
25
25
|
const menuRef = (0, react_1.useRef)(null);
|
|
26
|
-
const { menuProps } = (0, react_aria_1.useMenu)({ ...ariaMenuProps,
|
|
26
|
+
const { menuProps } = (0, react_aria_1.useMenu)({ ...ariaMenuProps, autoFocus: true }, state, menuRef);
|
|
27
27
|
const tid = (0, utils_1.useTestIds)(props);
|
|
28
28
|
// Bulk updates of MenuItems below. If we find this to be of sluggish performance, then we can change to be more surgical in our updating.
|
|
29
29
|
// If our list of items change, update the "items" menu section. (key is based on label in `getKey` above)
|
|
@@ -27,7 +27,13 @@ function MenuItemImpl(props) {
|
|
|
27
27
|
if (typeof onClick === "string") {
|
|
28
28
|
// if it is an absolute URL, then open in new window. Assuming this should leave the App
|
|
29
29
|
if ((0, utils_1.isAbsoluteUrl)(onClick)) {
|
|
30
|
-
window.open(
|
|
30
|
+
// We want to do `window.open(url, "_blank", "noopener,noreferrer")` but that Safari treats
|
|
31
|
+
// that as "open in new window", this happens when safari has the "Open pages in tabs instead of windows" set to "Automatically" (which is the default)
|
|
32
|
+
// see https://support.apple.com/guide/safari/tabs-ibrw1045/mac (Open pages in tabs instead of windows) for other behaviors
|
|
33
|
+
//
|
|
34
|
+
// So we do this instead, and at least null out the opener
|
|
35
|
+
// as a way to manually mimic the `"noopener"` flag.
|
|
36
|
+
window.open(onClick, "_blank").opener = null;
|
|
31
37
|
return;
|
|
32
38
|
}
|
|
33
39
|
// Otherwise, it is a relative URL and we'll assume it is still within the App.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@homebound/beam",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.170.1",
|
|
4
4
|
"author": "Homebound",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"format": "prettier --loglevel warn --write \"**/*.{ts,tsx,css,md}\""
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@homebound/form-state": "^2.15.
|
|
35
|
+
"@homebound/form-state": "^2.15.3",
|
|
36
36
|
"@internationalized/number": "^3.0.3",
|
|
37
|
-
"@react-aria/utils": "^3.
|
|
37
|
+
"@react-aria/utils": "^3.13.2",
|
|
38
38
|
"@react-hook/resize-observer": "^1.2.2",
|
|
39
39
|
"change-case": "^4.1.2",
|
|
40
40
|
"date-fns": "^2.28.0",
|
|
@@ -42,12 +42,12 @@
|
|
|
42
42
|
"fast-deep-equal": "^3.1.3",
|
|
43
43
|
"framer-motion": "^4.1.11",
|
|
44
44
|
"memoize-one": "^5.2.1",
|
|
45
|
-
"react-aria": "^3.
|
|
46
|
-
"react-day-picker": "
|
|
45
|
+
"react-aria": "^3.18.0",
|
|
46
|
+
"react-day-picker": "8.0.7",
|
|
47
47
|
"react-popper": "^2.2.5",
|
|
48
48
|
"react-router": "^5.2.0",
|
|
49
49
|
"react-router-dom": "^5.2.0",
|
|
50
|
-
"react-stately": "^3.
|
|
50
|
+
"react-stately": "^3.16.0",
|
|
51
51
|
"react-virtuoso": "2.10.2",
|
|
52
52
|
"tributejs": "^5.1.3",
|
|
53
53
|
"trix": "^1.3.1",
|
|
@@ -80,14 +80,15 @@
|
|
|
80
80
|
"@homebound/rtl-utils": "^2.59.3",
|
|
81
81
|
"@homebound/truss": "^1.113.0",
|
|
82
82
|
"@homebound/tsconfig": "^1.0.3",
|
|
83
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
|
|
83
84
|
"@semantic-release/exec": "^6.0.3",
|
|
84
85
|
"@semantic-release/git": "^9.0.0",
|
|
85
|
-
"@storybook/addon-essentials": "^6.
|
|
86
|
-
"@storybook/addon-interactions": "^6.
|
|
87
|
-
"@storybook/addon-links": "^6.
|
|
88
|
-
"@storybook/addons": "^6.
|
|
89
|
-
"@storybook/react": "^6.
|
|
90
|
-
"@storybook/testing-library": "^0.0.
|
|
86
|
+
"@storybook/addon-essentials": "^6.5.10",
|
|
87
|
+
"@storybook/addon-interactions": "^6.5.10",
|
|
88
|
+
"@storybook/addon-links": "^6.5.10",
|
|
89
|
+
"@storybook/addons": "^6.5.10",
|
|
90
|
+
"@storybook/react": "^6.5.10",
|
|
91
|
+
"@storybook/testing-library": "^0.0.13",
|
|
91
92
|
"@testing-library/jest-dom": "^5.11.9",
|
|
92
93
|
"@testing-library/react-hooks": "^7.0.1",
|
|
93
94
|
"@tsconfig/recommended": "^1.0.1",
|
|
@@ -112,6 +113,7 @@
|
|
|
112
113
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
113
114
|
"eslint-plugin-react": "^7.22.0",
|
|
114
115
|
"eslint-plugin-react-hooks": "^4.2.0",
|
|
116
|
+
"eslint-plugin-storybook": "^0.6.4",
|
|
115
117
|
"husky": "^5.1.1",
|
|
116
118
|
"identity-obj-proxy": "^3.0.0",
|
|
117
119
|
"jest": "^26.6.3",
|
|
@@ -132,7 +134,6 @@
|
|
|
132
134
|
"ttypescript": "^1.5.12",
|
|
133
135
|
"typescript": "^4.4.2",
|
|
134
136
|
"typescript-transform-paths": "^3.2.1",
|
|
135
|
-
"watch": "^1.0.2"
|
|
136
|
-
"xstate": "^4.23.0"
|
|
137
|
+
"watch": "^1.0.2"
|
|
137
138
|
}
|
|
138
139
|
}
|