Skip to content

Commit 679bb83

Browse files
committed
Merge branch 'main' into swc-1668/poc-components
2 parents e0f8847 + 677519b commit 679bb83

50 files changed

Lines changed: 6949 additions & 443 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@
7070
"seafoam",
7171
"sidenav",
7272
"tabindex",
73+
"tabindexes",
74+
"unmanage",
7375
"unsuffixed",
7476
"valuenow",
7577
"valuetext"
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
diff --git a/dist/_browser-chunks/chunk-2N4WE3KZ.js b/dist/_browser-chunks/chunk-2N4WE3KZ.js
2-
index 9b09cad2689865e94445bf8e35191a38a3016caf..3f4c4bd100790615a6fae6e59c920dd8fbc17911 100644
3-
--- a/dist/_browser-chunks/chunk-2N4WE3KZ.js
4-
+++ b/dist/_browser-chunks/chunk-2N4WE3KZ.js
5-
@@ -1758,7 +1758,7 @@ var StoryRender = class {
1+
diff --git a/dist/_browser-chunks/chunk-SZQXB3JV.js b/dist/_browser-chunks/chunk-SZQXB3JV.js
2+
index 3cfc32a9d03ab3a77dc18035cd9fe7e3de03de52..827d00a7a46d09a93276d34cdd85e5fef402bc5d 100644
3+
--- a/dist/_browser-chunks/chunk-SZQXB3JV.js
4+
+++ b/dist/_browser-chunks/chunk-SZQXB3JV.js
5+
@@ -1771,7 +1771,7 @@
66
}, onUnhandledRejection = (event) => {
77
event.reason && unhandledErrors.add(event.reason);
88
};
@@ -12,10 +12,10 @@ index 9b09cad2689865e94445bf8e35191a38a3016caf..3f4c4bd100790615a6fae6e59c920dd8
1212
try {
1313
if (isMountDestructured ? await playFunction(context) : (context.mount = async () => {
1414
diff --git a/dist/preview/runtime.js b/dist/preview/runtime.js
15-
index 4db3972f6b5077c992467ce50923e0157e1b186e..89b9e35866e84cfb742046d6832bf63215b53af8 100644
15+
index 8f604257f47817b904d6005bf20d10a1ade6de00..1d69e9b54efe7709d5a9b9bd61b5727387a53b09 100644
1616
--- a/dist/preview/runtime.js
1717
+++ b/dist/preview/runtime.js
18-
@@ -36000,7 +36000,7 @@ var StoryRender = class {
18+
@@ -34023,7 +34023,7 @@
1919
}, onUnhandledRejection = (event) => {
2020
event.reason && unhandledErrors.add(event.reason);
2121
};

1st-gen/tools/base/src/Base.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ export function SpectrumMixin<T extends Constructor<ReactiveElement>>(
6363
// selector will throw on the following test (Safari, older things).
6464
// Some won't throw, but will be focusing item rather than the menu and
6565
// will rely on the polyfill to know whether focus is "visible" or not.
66+
// .focus-visible polyfill class will intentionally not be checked in 2nd-gen.
67+
// 2nd-gen targets browsers with native support for :focus-visible.
6668
return (
6769
activeElement.matches(':focus-visible') ||
6870
activeElement.matches('.focus-visible')

2nd-gen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"packages/*"
4040
],
4141
"devDependencies": {
42-
"@storybook/addon-vitest": "10.0.3",
42+
"@storybook/addon-vitest": "10.3.5",
4343
"eslint": "9.39.2",
4444
"eslint-plugin-simple-import-sort": "12.1.1",
4545
"npm-run-all2": "8.0.4"

2nd-gen/packages/swc/.storybook/vitest.setup.ts renamed to 2nd-gen/packages/core/controllers/focusgroup-navigation-controller/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
* OF ANY KIND, either express or implied. See the License for the specific language
1010
* governing permissions and limitations under the License.
1111
*/
12-
import { setProjectAnnotations } from '@storybook/web-components-vite';
1312

14-
import preview from './preview';
15-
16-
// This is an important step to apply the right configuration when testing your stories.
17-
// More info at: https://storybook.js.org/docs/api/portable-stories/portable-stories-vitest#setprojectannotations
18-
// @ts-expect-error Preview object shape is valid at runtime; Storybook types are too strict here.
19-
setProjectAnnotations([preview]);
13+
export {
14+
focusgroupNavigationActiveChange,
15+
FocusgroupNavigationController,
16+
type FocusgroupDirection,
17+
type FocusgroupNavigationActiveChangeDetail,
18+
type FocusgroupNavigationOptions,
19+
} from './src/focusgroup-navigation-controller.js';

0 commit comments

Comments
 (0)