Skip to content

Commit ef47dd6

Browse files
committed
fix: Navigation fallback for useMultiAppLayout
1 parent 052c746 commit ef47dd6

File tree

4 files changed

+477
-34
lines changed

4 files changed

+477
-34
lines changed

src/app-layout/__tests__/__snapshots__/widget-contract-split-panel.test.tsx.snap

Lines changed: 124 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Map {
169169
"setToolbarHeight": [Function],
170170
"setToolbarState": [Function],
171171
"splitPanelAnimationDisabled": true,
172-
"splitPanelControlId": "split-panel15",
172+
"splitPanelControlId": "split-panel33",
173173
"splitPanelFocusControl": {
174174
"refs": {
175175
"preferences": {
@@ -215,6 +215,7 @@ Map {
215215
},
216216
},
217217
],
218+
"expandedDrawerId": null,
218219
"hasToolbar": true,
219220
"intersectionObserverRef": [Function],
220221
"isIntersecting": true,
@@ -465,7 +466,7 @@ Map {
465466
"setToolbarHeight": [Function],
466467
"setToolbarState": [Function],
467468
"splitPanelAnimationDisabled": true,
468-
"splitPanelControlId": "split-panel15",
469+
"splitPanelControlId": "split-panel33",
469470
"splitPanelFocusControl": {
470471
"refs": {
471472
"preferences": {
@@ -511,6 +512,7 @@ Map {
511512
},
512513
},
513514
],
515+
"expandedDrawerId": null,
514516
"hasToolbar": true,
515517
"intersectionObserverRef": [Function],
516518
"isIntersecting": true,
@@ -761,7 +763,7 @@ Map {
761763
"setToolbarHeight": [Function],
762764
"setToolbarState": [Function],
763765
"splitPanelAnimationDisabled": true,
764-
"splitPanelControlId": "split-panel15",
766+
"splitPanelControlId": "split-panel33",
765767
"splitPanelFocusControl": {
766768
"refs": {
767769
"preferences": {
@@ -807,6 +809,7 @@ Map {
807809
},
808810
},
809811
],
812+
"expandedDrawerId": null,
810813
"hasToolbar": true,
811814
"intersectionObserverRef": [Function],
812815
"isIntersecting": true,
@@ -1057,7 +1060,7 @@ Map {
10571060
"setToolbarHeight": [Function],
10581061
"setToolbarState": [Function],
10591062
"splitPanelAnimationDisabled": true,
1060-
"splitPanelControlId": "split-panel15",
1063+
"splitPanelControlId": "split-panel33",
10611064
"splitPanelFocusControl": {
10621065
"refs": {
10631066
"preferences": {
@@ -1103,6 +1106,7 @@ Map {
11031106
},
11041107
},
11051108
],
1109+
"expandedDrawerId": null,
11061110
"hasToolbar": true,
11071111
"intersectionObserverRef": [Function],
11081112
"isIntersecting": true,
@@ -1314,16 +1318,43 @@ Map {
13141318
"appLayoutInternals": {
13151319
"discoveredBreadcrumbs": null,
13161320
"globalDrawers": [],
1321+
"navigationOpen": true,
1322+
"placement": {
1323+
"inlineSize": Infinity,
1324+
"insetBlockEnd": 0,
1325+
"insetBlockStart": 0,
1326+
"insetInlineEnd": 0,
1327+
"insetInlineStart": 0,
1328+
},
13171329
"verticalOffsets": {
13181330
"drawers": 0,
13191331
"header": 0,
13201332
"notifications": 0,
13211333
"toolbar": 0,
13221334
},
13231335
},
1324-
"hasToolbar": false,
1336+
"hasToolbar": true,
13251337
"registered": true,
1326-
"toolbarProps": null,
1338+
"resolvedNavigation": "__JSX__",
1339+
"resolvedNavigationOpen": true,
1340+
"toolbarProps": {
1341+
"ariaLabels": {
1342+
"drawers": undefined,
1343+
"drawersOverflow": undefined,
1344+
"drawersOverflowWithBadge": undefined,
1345+
"navigation": undefined,
1346+
"navigationClose": undefined,
1347+
"navigationToggle": undefined,
1348+
"notifications": undefined,
1349+
"tools": undefined,
1350+
"toolsClose": undefined,
1351+
"toolsToggle": undefined,
1352+
},
1353+
"hasNavigation": true,
1354+
"navigationFocusRef": undefined,
1355+
"navigationOpen": true,
1356+
"onNavigationToggle": [Function],
1357+
},
13271358
"verticalOffsets": {
13281359
"drawers": 0,
13291360
"header": 0,
@@ -1367,16 +1398,43 @@ Map {
13671398
"appLayoutInternals": {
13681399
"discoveredBreadcrumbs": null,
13691400
"globalDrawers": [],
1401+
"navigationOpen": true,
1402+
"placement": {
1403+
"inlineSize": Infinity,
1404+
"insetBlockEnd": 0,
1405+
"insetBlockStart": 0,
1406+
"insetInlineEnd": 0,
1407+
"insetInlineStart": 0,
1408+
},
13701409
"verticalOffsets": {
13711410
"drawers": 0,
13721411
"header": 0,
13731412
"notifications": 0,
13741413
"toolbar": 0,
13751414
},
13761415
},
1377-
"hasToolbar": false,
1416+
"hasToolbar": true,
13781417
"registered": true,
1379-
"toolbarProps": null,
1418+
"resolvedNavigation": "__JSX__",
1419+
"resolvedNavigationOpen": true,
1420+
"toolbarProps": {
1421+
"ariaLabels": {
1422+
"drawers": undefined,
1423+
"drawersOverflow": undefined,
1424+
"drawersOverflowWithBadge": undefined,
1425+
"navigation": undefined,
1426+
"navigationClose": undefined,
1427+
"navigationToggle": undefined,
1428+
"notifications": undefined,
1429+
"tools": undefined,
1430+
"toolsClose": undefined,
1431+
"toolsToggle": undefined,
1432+
},
1433+
"hasNavigation": true,
1434+
"navigationFocusRef": undefined,
1435+
"navigationOpen": true,
1436+
"onNavigationToggle": [Function],
1437+
},
13801438
"verticalOffsets": {
13811439
"drawers": 0,
13821440
"header": 0,
@@ -1420,16 +1478,43 @@ Map {
14201478
"appLayoutInternals": {
14211479
"discoveredBreadcrumbs": null,
14221480
"globalDrawers": [],
1481+
"navigationOpen": true,
1482+
"placement": {
1483+
"inlineSize": Infinity,
1484+
"insetBlockEnd": 0,
1485+
"insetBlockStart": 0,
1486+
"insetInlineEnd": 0,
1487+
"insetInlineStart": 0,
1488+
},
14231489
"verticalOffsets": {
14241490
"drawers": 0,
14251491
"header": 0,
14261492
"notifications": 0,
14271493
"toolbar": 0,
14281494
},
14291495
},
1430-
"hasToolbar": false,
1496+
"hasToolbar": true,
14311497
"registered": true,
1432-
"toolbarProps": null,
1498+
"resolvedNavigation": "__JSX__",
1499+
"resolvedNavigationOpen": true,
1500+
"toolbarProps": {
1501+
"ariaLabels": {
1502+
"drawers": undefined,
1503+
"drawersOverflow": undefined,
1504+
"drawersOverflowWithBadge": undefined,
1505+
"navigation": undefined,
1506+
"navigationClose": undefined,
1507+
"navigationToggle": undefined,
1508+
"notifications": undefined,
1509+
"tools": undefined,
1510+
"toolsClose": undefined,
1511+
"toolsToggle": undefined,
1512+
},
1513+
"hasNavigation": true,
1514+
"navigationFocusRef": undefined,
1515+
"navigationOpen": true,
1516+
"onNavigationToggle": [Function],
1517+
},
14331518
"verticalOffsets": {
14341519
"drawers": 0,
14351520
"header": 0,
@@ -1473,16 +1558,43 @@ Map {
14731558
"appLayoutInternals": {
14741559
"discoveredBreadcrumbs": null,
14751560
"globalDrawers": [],
1561+
"navigationOpen": true,
1562+
"placement": {
1563+
"inlineSize": Infinity,
1564+
"insetBlockEnd": 0,
1565+
"insetBlockStart": 0,
1566+
"insetInlineEnd": 0,
1567+
"insetInlineStart": 0,
1568+
},
14761569
"verticalOffsets": {
14771570
"drawers": 0,
14781571
"header": 0,
14791572
"notifications": 0,
14801573
"toolbar": 0,
14811574
},
14821575
},
1483-
"hasToolbar": false,
1576+
"hasToolbar": true,
14841577
"registered": true,
1485-
"toolbarProps": null,
1578+
"resolvedNavigation": "__JSX__",
1579+
"resolvedNavigationOpen": true,
1580+
"toolbarProps": {
1581+
"ariaLabels": {
1582+
"drawers": undefined,
1583+
"drawersOverflow": undefined,
1584+
"drawersOverflowWithBadge": undefined,
1585+
"navigation": undefined,
1586+
"navigationClose": undefined,
1587+
"navigationToggle": undefined,
1588+
"notifications": undefined,
1589+
"tools": undefined,
1590+
"toolsClose": undefined,
1591+
"toolsToggle": undefined,
1592+
},
1593+
"hasNavigation": true,
1594+
"navigationFocusRef": undefined,
1595+
"navigationOpen": true,
1596+
"onNavigationToggle": [Function],
1597+
},
14861598
"verticalOffsets": {
14871599
"drawers": 0,
14881600
"header": 0,

0 commit comments

Comments
 (0)