@oxy.so/bloom 19.7.1 → 19.7.2
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/docs/compose-layouts.mdx +2 -0
- package/docs/composer-loader.mdx +6 -0
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/lib/commonjs/app-shell/AppShellPanelLayout.js +1 -0
- package/lib/commonjs/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/commonjs/app-shell/PanelReorderHandle.js +3 -1
- package/lib/commonjs/app-shell/PanelReorderHandle.js.map +1 -1
- package/lib/commonjs/app-shell/use-panel-reorder.js +4 -4
- package/lib/commonjs/app-shell/use-panel-reorder.js.map +1 -1
- package/lib/module/app-shell/AppShellPanelLayout.js +1 -0
- package/lib/module/app-shell/AppShellPanelLayout.js.map +1 -1
- package/lib/module/app-shell/PanelReorderHandle.js +3 -1
- package/lib/module/app-shell/PanelReorderHandle.js.map +1 -1
- package/lib/module/app-shell/use-panel-reorder.js +4 -4
- package/lib/module/app-shell/use-panel-reorder.js.map +1 -1
- package/lib/typescript/commonjs/app-shell/AppShellPanelLayout.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/PanelReorderHandle.d.ts +2 -1
- package/lib/typescript/commonjs/app-shell/PanelReorderHandle.d.ts.map +1 -1
- package/lib/typescript/commonjs/app-shell/use-panel-reorder.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/AppShellPanelLayout.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/PanelReorderHandle.d.ts +2 -1
- package/lib/typescript/module/app-shell/PanelReorderHandle.d.ts.map +1 -1
- package/lib/typescript/module/app-shell/use-panel-reorder.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/app-shell/AppShellPanelLayout.tsx +1 -0
- package/src/app-shell/PanelReorderHandle.tsx +3 -1
- package/src/app-shell/use-panel-reorder.ts +4 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-pan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id) ? (
|
|
1589
1589
|
<PanelReorderHandle
|
|
1590
|
+
scope={cssScope}
|
|
1590
1591
|
id={panel.id}
|
|
1591
1592
|
label={panel.reorderLabel ?? panel.id}
|
|
1592
1593
|
onMove={(delta) => reorder.move(panel.id, delta)}
|
|
@@ -22,6 +22,7 @@ const HANDLE_CSS = interactiveWebCss({
|
|
|
22
22
|
|
|
23
23
|
export function PanelReorderHandle({
|
|
24
24
|
id,
|
|
25
|
+
scope,
|
|
25
26
|
label,
|
|
26
27
|
onMove,
|
|
27
28
|
onStart,
|
|
@@ -31,6 +32,7 @@ export function PanelReorderHandle({
|
|
|
31
32
|
testID,
|
|
32
33
|
}: {
|
|
33
34
|
id: string;
|
|
35
|
+
scope: string | null;
|
|
34
36
|
label: string;
|
|
35
37
|
onMove: (delta: number) => void;
|
|
36
38
|
onStart: (id: string, x: number, y: number) => void;
|
|
@@ -91,7 +93,7 @@ export function PanelReorderHandle({
|
|
|
91
93
|
onAccessibilityAction={(event) =>
|
|
92
94
|
onMove(event.nativeEvent.actionName === 'decrement' ? -1 : 1)
|
|
93
95
|
}
|
|
94
|
-
{...{ dataSet: { bloomPanelReorder: id } }}
|
|
96
|
+
{...{ dataSet: { bloomPanelReorder: id, bloomPanelReorderOwner: scope ?? undefined } }}
|
|
95
97
|
testID={testID}
|
|
96
98
|
hitSlop={4}
|
|
97
99
|
style={
|
|
@@ -230,7 +230,7 @@ export function usePanelReorder({
|
|
|
230
230
|
.find(
|
|
231
231
|
(node) =>
|
|
232
232
|
node.dataset.bloomPanelReorder === pendingFocus.current &&
|
|
233
|
-
node.
|
|
233
|
+
node.dataset.bloomPanelReorderOwner === scope,
|
|
234
234
|
)
|
|
235
235
|
?.focus({ preventScroll: true });
|
|
236
236
|
pendingFocus.current = null;
|
|
@@ -426,8 +426,7 @@ export function usePanelReorder({
|
|
|
426
426
|
root.querySelectorAll<HTMLElement>('[data-bloom-panel-reorder]'),
|
|
427
427
|
).find(
|
|
428
428
|
(node) =>
|
|
429
|
-
node.dataset.bloomPanelReorder === id &&
|
|
430
|
-
node.closest('[data-bloom-panel-group]') === root,
|
|
429
|
+
node.dataset.bloomPanelReorder === id && node.dataset.bloomPanelReorderOwner === scope,
|
|
431
430
|
);
|
|
432
431
|
handle?.focus({ preventScroll: true });
|
|
433
432
|
let owner: Window | HTMLElement = window;
|
|
@@ -587,7 +586,7 @@ export function usePanelReorder({
|
|
|
587
586
|
if (
|
|
588
587
|
!handle ||
|
|
589
588
|
!root?.contains(handle) ||
|
|
590
|
-
handle.
|
|
589
|
+
handle.dataset.bloomPanelReorderOwner !== scope ||
|
|
591
590
|
!id ||
|
|
592
591
|
!state.movable.includes(id)
|
|
593
592
|
)
|
|
@@ -617,7 +616,7 @@ export function usePanelReorder({
|
|
|
617
616
|
window.removeEventListener('blur', reset);
|
|
618
617
|
window.removeEventListener('resize', reset);
|
|
619
618
|
};
|
|
620
|
-
}, [rootElement, move, reset]);
|
|
619
|
+
}, [rootElement, move, reset, scope]);
|
|
621
620
|
const measure = useCallback(
|
|
622
621
|
async (id: string): Promise<PanelReorderRect | null> => {
|
|
623
622
|
if (Platform.OS !== 'web') return hosts.current.get(id)?.measure() ?? null;
|