react-science 16.1.0 → 17.0.0
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/lib/components/fullscreen/fullscreen_context.provider.d.ts +6 -2
- package/lib/components/fullscreen/fullscreen_context.provider.d.ts.map +1 -1
- package/lib/components/fullscreen/fullscreen_context.provider.js +1 -5
- package/lib/components/fullscreen/fullscreen_context.provider.js.map +1 -1
- package/lib/components/pdnd.cjs +29 -0
- package/lib/components/pdnd.cjs.map +1 -0
- package/lib/components/pdnd.d.cts +10 -0
- package/lib/components/pdnd.d.cts.map +1 -0
- package/lib/components/root-layout/css-reset/customPreflight.d.ts.map +1 -1
- package/lib/components/root-layout/css-reset/customPreflight.js +6 -0
- package/lib/components/root-layout/css-reset/customPreflight.js.map +1 -1
- package/lib/components/root-layout/root_layout.d.ts.map +1 -1
- package/lib/components/root-layout/root_layout.js +12 -5
- package/lib/components/root-layout/root_layout.js.map +1 -1
- package/lib/components/table/reorder_rows/draggable_row_tr.d.ts.map +1 -1
- package/lib/components/table/reorder_rows/draggable_row_tr.js +1 -5
- package/lib/components/table/reorder_rows/draggable_row_tr.js.map +1 -1
- package/lib/components/table/reorder_rows/item_order_provider.d.ts.map +1 -1
- package/lib/components/table/reorder_rows/item_order_provider.js +1 -2
- package/lib/components/table/reorder_rows/item_order_provider.js.map +1 -1
- package/lib/components/table/reorder_rows/use_drop_monitor.d.ts.map +1 -1
- package/lib/components/table/reorder_rows/use_drop_monitor.js +1 -4
- package/lib/components/table/reorder_rows/use_drop_monitor.js.map +1 -1
- package/package.json +1 -1
- package/src/components/fullscreen/fullscreen_context.provider.tsx +7 -14
- package/src/components/pdnd.cts +20 -0
- package/src/components/root-layout/css-reset/customPreflight.ts +6 -0
- package/src/components/root-layout/root_layout.tsx +30 -18
- package/src/components/table/reorder_rows/draggable_row_tr.tsx +9 -11
- package/src/components/table/reorder_rows/item_order_provider.tsx +2 -2
- package/src/components/table/reorder_rows/use_drop_monitor.ts +6 -4
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
1
|
+
import type { ReactNode, RefObject } from 'react';
|
|
2
2
|
interface FullscreenProps {
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Callback providing the ref which should be passed to the element that can be displayed fullscreen.
|
|
5
|
+
* @param ref
|
|
6
|
+
*/
|
|
7
|
+
children: (ref: RefObject<HTMLDivElement>) => ReactNode;
|
|
4
8
|
}
|
|
5
9
|
export declare function FullScreenProvider(props: FullscreenProps): import("react/jsx-runtime").JSX.Element;
|
|
6
10
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fullscreen_context.provider.d.ts","sourceRoot":"","sources":["../../../src/components/fullscreen/fullscreen_context.provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"fullscreen_context.provider.d.ts","sourceRoot":"","sources":["../../../src/components/fullscreen/fullscreen_context.provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAalD,UAAU,eAAe;IACvB;;;OAGG;IACH,QAAQ,EAAE,CAAC,GAAG,EAAE,SAAS,CAAC,cAAc,CAAC,KAAK,SAAS,CAAC;CACzD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,eAAe,2CAYxD"}
|
|
@@ -55,10 +55,6 @@ function FullscreenInner(props) {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
}, [isFullScreen]);
|
|
58
|
-
return (
|
|
59
|
-
width: '100%',
|
|
60
|
-
height: '100%',
|
|
61
|
-
backgroundColor: 'white',
|
|
62
|
-
}, children: children }));
|
|
58
|
+
return children(ref);
|
|
63
59
|
}
|
|
64
60
|
//# sourceMappingURL=fullscreen_context.provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fullscreen_context.provider.js","sourceRoot":"","sources":["../../../src/components/fullscreen/fullscreen_context.provider.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"fullscreen_context.provider.js","sourceRoot":"","sources":["../../../src/components/fullscreen/fullscreen_context.provider.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAkB3E,MAAM,UAAU,kBAAkB,CAAC,KAAsB;IACvD,MAAM,CAAC,YAAY,EAAE,MAAM,CAAC,GAAG,UAAU,CAAC,CAAC,KAAc,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAE7E,MAAM,KAAK,GAAG,OAAO,CACnB,GAAG,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,EAChC,CAAC,YAAY,EAAE,MAAM,CAAC,CACvB,CAAC;IACF,OAAO,CACL,KAAC,iBAAiB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YACtC,KAAC,eAAe,OAAK,KAAK,GAAI,GACH,CAC9B,CAAC;AACJ,CAAC;AACD,SAAS,eAAe,CAAC,KAAsB;IAC7C,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAC;IACjD,MAAM,GAAG,GAAG,MAAM,CAAc,IAAI,CAAC,CAAC;IACtC,SAAS,CAAC,GAAG,EAAE;QACb,SAAS,kBAAkB;YACzB,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAwB,C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wB,CAAC;QACjD,IAAI,CAAC,YAAY,IAAI,QAAQ,CAAC,iBAAiB,EAAE,CAAC;YAChD,IAAI,QAAQ,CAAC,cAAc,EAAE,CAAC;gBAC5B,QAAQ,CAAC,cAAc,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE;oBACnC,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;gBACxC,CAAC,CAAC,CAAC;YACL,CAAC;iBAAM,IAAI,QAAQ,CAAC,oBAAoB,EAAE,CAAC;gBACzC,QAAQ,CAAC,oBAAoB,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE;oBACzC,MAAM,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC;gBACxC,CAAC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IACnB,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getReorderDestinationIndex = exports.attachClosestEdge = exports.extractClosestEdge = exports.autoScrollForElements = exports.monitorForElements = exports.dropTargetForElements = exports.draggable = exports.reorder = exports.combine = exports.setCustomNativeDragPreview = exports.pointerOutsideOfPreview = void 0;
|
|
4
|
+
// https://github.com/atlassian/pragmatic-drag-and-drop/issues/27
|
|
5
|
+
// Given how `@atlaskit/pragmatic-drag-and-drop` publishes ESM in a non-native way,
|
|
6
|
+
// we have to trick TS into using the CJS build so that our build is compatible
|
|
7
|
+
// with native ESM.
|
|
8
|
+
// We cannot use `verbatimModuleSyntax` ts config option with this pattern.
|
|
9
|
+
var pointer_outside_of_preview_1 = require("@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview");
|
|
10
|
+
Object.defineProperty(exports, "pointerOutsideOfPreview", { enumerable: true, get: function () { return pointer_outside_of_preview_1.pointerOutsideOfPreview; } });
|
|
11
|
+
var set_custom_native_drag_preview_1 = require("@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview");
|
|
12
|
+
Object.defineProperty(exports, "setCustomNativeDragPreview", { enumerable: true, get: function () { return set_custom_native_drag_preview_1.setCustomNativeDragPreview; } });
|
|
13
|
+
var combine_1 = require("@atlaskit/pragmatic-drag-and-drop/combine");
|
|
14
|
+
Object.defineProperty(exports, "combine", { enumerable: true, get: function () { return combine_1.combine; } });
|
|
15
|
+
var reorder_1 = require("@atlaskit/pragmatic-drag-and-drop/reorder");
|
|
16
|
+
Object.defineProperty(exports, "reorder", { enumerable: true, get: function () { return reorder_1.reorder; } });
|
|
17
|
+
var adapter_1 = require("@atlaskit/pragmatic-drag-and-drop/element/adapter");
|
|
18
|
+
Object.defineProperty(exports, "draggable", { enumerable: true, get: function () { return adapter_1.draggable; } });
|
|
19
|
+
Object.defineProperty(exports, "dropTargetForElements", { enumerable: true, get: function () { return adapter_1.dropTargetForElements; } });
|
|
20
|
+
var adapter_2 = require("@atlaskit/pragmatic-drag-and-drop/element/adapter");
|
|
21
|
+
Object.defineProperty(exports, "monitorForElements", { enumerable: true, get: function () { return adapter_2.monitorForElements; } });
|
|
22
|
+
var element_1 = require("@atlaskit/pragmatic-drag-and-drop-auto-scroll/element");
|
|
23
|
+
Object.defineProperty(exports, "autoScrollForElements", { enumerable: true, get: function () { return element_1.autoScrollForElements; } });
|
|
24
|
+
var closest_edge_1 = require("@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge");
|
|
25
|
+
Object.defineProperty(exports, "extractClosestEdge", { enumerable: true, get: function () { return closest_edge_1.extractClosestEdge; } });
|
|
26
|
+
Object.defineProperty(exports, "attachClosestEdge", { enumerable: true, get: function () { return closest_edge_1.attachClosestEdge; } });
|
|
27
|
+
var get_reorder_destination_index_1 = require("@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index");
|
|
28
|
+
Object.defineProperty(exports, "getReorderDestinationIndex", { enumerable: true, get: function () { return get_reorder_destination_index_1.getReorderDestinationIndex; } });
|
|
29
|
+
//# sourceMappingURL=pdnd.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdnd.cjs","sourceRoot":"","sources":["../../src/components/pdnd.cts"],"names":[],"mappings":";;;AAAA,iEAAiE;AACjE,mFAAmF;AACnF,+EAA+E;AAC/E,mBAAmB;AACnB,2EAA2E;AAC3E,mHAA+G;AAAtG,qIAAA,uBAAuB,OAAA;AAChC,2HAAsH;AAA7G,4IAAA,0BAA0B,OAAA;AACnC,qEAAoE;AAA3D,kGAAA,OAAO,OAAA;AAChB,qEAAoE;AAA3D,kGAAA,OAAO,OAAA;AAChB,6EAG2D;AAFzD,oGAAA,SAAS,OAAA;AACT,gHAAA,qBAAqB,OAAA;AAEvB,6EAAuF;AAA9E,6GAAA,kBAAkB,OAAA;AAC3B,iFAA8F;AAArF,gHAAA,qBAAqB,OAAA;AAC9B,sFAG+D;AAF7D,kHAAA,kBAAkB,OAAA;AAClB,iHAAA,iBAAiB,OAAA;AAEnB,6HAAyH;AAAhH,2IAAA,0BAA0B,OAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { pointerOutsideOfPreview } from '@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview';
|
|
2
|
+
export { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
|
|
3
|
+
export { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
4
|
+
export { reorder } from '@atlaskit/pragmatic-drag-and-drop/reorder';
|
|
5
|
+
export { draggable, dropTargetForElements, } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
6
|
+
export { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
7
|
+
export { autoScrollForElements } from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
|
|
8
|
+
export { extractClosestEdge, attachClosestEdge, } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
9
|
+
export { getReorderDestinationIndex } from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index';
|
|
10
|
+
//# sourceMappingURL=pdnd.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdnd.d.cts","sourceRoot":"","sources":["../../src/components/pdnd.cts"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAE,MAAM,sEAAsE,CAAC;AAC/G,OAAO,EAAE,0BAA0B,EAAE,MAAM,0EAA0E,CAAC;AACtH,OAAO,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AACpE,OAAO,EACL,SAAS,EACT,qBAAqB,GACtB,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mDAAmD,CAAC;AACvF,OAAO,EAAE,qBAAqB,EAAE,MAAM,uDAAuD,CAAC;AAC9F,OAAO,EACL,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,6EAA6E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customPreflight.d.ts","sourceRoot":"","sources":["../../../../src/components/root-layout/css-reset/customPreflight.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB;;SAsBtB,MAAO,
|
|
1
|
+
{"version":3,"file":"customPreflight.d.ts","sourceRoot":"","sources":["../../../../src/components/root-layout/css-reset/customPreflight.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB;;SAsBtB,MAAO,WAEZ;yGAKH,CAAC"}
|
|
@@ -23,5 +23,11 @@ export const CustomDivPreflight = styled.div `
|
|
|
23
23
|
width: 100%;
|
|
24
24
|
height: 100%;
|
|
25
25
|
position: relative;
|
|
26
|
+
|
|
27
|
+
&:fullscreen::backdrop,
|
|
28
|
+
*:fullscreen::backdrop {
|
|
29
|
+
/* Override user agent default */
|
|
30
|
+
background-color: white;
|
|
31
|
+
}
|
|
26
32
|
`;
|
|
27
33
|
//# sourceMappingURL=customPreflight.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customPreflight.js","sourceRoot":"","sources":["../../../../src/components/root-layout/css-reset/customPreflight.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,qFAAqF;AACrF,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"customPreflight.js","sourceRoot":"","sources":["../../../../src/components/root-layout/css-reset/customPreflight.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,qFAAqF;AACrF,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6B3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root_layout.d.ts","sourceRoot":"","sources":["../../../src/components/root-layout/root_layout.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"root_layout.d.ts","sourceRoot":"","sources":["../../../src/components/root-layout/root_layout.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAoB,SAAS,EAAE,MAAM,OAAO,CAAC;AAWxE,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAUD,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,2CAwChD"}
|
|
@@ -2,6 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { BlueprintProvider, FocusStyleManager } from '@blueprintjs/core';
|
|
3
3
|
import { useCallback, useState } from 'react';
|
|
4
4
|
import { AccordionProvider } from '../accordion/index.js';
|
|
5
|
+
import { FullScreenProvider } from '../fullscreen/index.js';
|
|
5
6
|
import { CustomDivPreflight } from './css-reset/customPreflight.js';
|
|
6
7
|
import { RootLayoutProvider } from './root_layout_context.provider.js';
|
|
7
8
|
FocusStyleManager.onlyShowFocusOnTabs();
|
|
@@ -14,14 +15,20 @@ const style = {
|
|
|
14
15
|
};
|
|
15
16
|
export function RootLayout(props) {
|
|
16
17
|
const [rootRef, setRootRef] = useState(typeof document !== 'undefined' ? document.body : null);
|
|
17
|
-
const
|
|
18
|
+
const refCallback = useCallback((node) => {
|
|
18
19
|
if (node !== null) {
|
|
19
20
|
setRootRef(node);
|
|
20
21
|
}
|
|
21
22
|
}, []);
|
|
22
|
-
return (_jsx(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
return (_jsx(FullScreenProvider, { children: (ref) => (_jsx(CustomDivPreflight, { id: "root-layout", ref: (node) => {
|
|
24
|
+
if (node) {
|
|
25
|
+
const mutableRef = ref;
|
|
26
|
+
mutableRef.current = node;
|
|
27
|
+
refCallback(node);
|
|
28
|
+
}
|
|
29
|
+
}, style: {
|
|
30
|
+
...style,
|
|
31
|
+
...props.style,
|
|
32
|
+
}, translate: "no", children: _jsx(BlueprintProvider, { ...(rootRef ? { portalContainer: rootRef } : undefined), children: _jsx(RootLayoutProvider, { innerRef: rootRef, children: _jsx(AccordionProvider, { children: props.children }) }) }) })) }));
|
|
26
33
|
}
|
|
27
34
|
//# sourceMappingURL=root_layout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root_layout.js","sourceRoot":"","sources":["../../../src/components/root-layout/root_layout.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEzE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAE,iBAAiB,EAAE,MA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M,UAAU,GAAG,GAAuC,CAAC;oBAC3D,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC;oBAC1B,WAAW,CAAC,IAAI,CAAC,CAAC;gBACpB,CAAC;YACH,CAAC,EACD,KAAK,EAAE;gBACL,GAAG,KAAK;gBACR,GAAG,KAAK,CAAC,KAAK;aACf,EACD,SAAS,EAAC,IAAI,YAEd,KAAC,iBAAiB,OACZ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,YAExD,KAAC,kBAAkB,IAAC,QAAQ,EAAE,OAAO,YACnC,KAAC,iBAAiB,cAAE,KAAK,CAAC,QAAQ,GAAqB,GACpC,GACH,GACD,CACtB,GACkB,CACtB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draggable_row_tr.d.ts","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/draggable_row_tr.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"draggable_row_tr.d.ts","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/draggable_row_tr.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAiB1D,OAAO,KAAK,EACV,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,mBAAmB,CAAC;AAQ3B,MAAM,WAAW,wBAAwB,CAAC,KAAK,SAAS,OAAO;IAC7D;;OAEG;IACH,OAAO,EAAE,qBAAqB,CAAC;IAC/B;;OAEG;IACH,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IAChB;;OAEG;IACH,gBAAgB,CAAC,EAAE,uBAAuB,CAAC,KAAK,CAAC,CAAC;CACnD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,SAAS,OAAO,EACvD,KAAK,EAAE,wBAAwB,CAAC,KAAK,CAAC,2CA6GvC"}
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
3
|
-
import { draggable, dropTargetForElements, } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
4
|
-
import { pointerOutsideOfPreview } from '@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview';
|
|
5
|
-
import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
|
|
6
|
-
import { attachClosestEdge, extractClosestEdge, } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
7
2
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
8
3
|
import { createPortal } from 'react-dom';
|
|
4
|
+
import { attachClosestEdge, combine, draggable, dropTargetForElements, extractClosestEdge, pointerOutsideOfPreview, setCustomNativeDragPreview, } from '../../pdnd.cjs';
|
|
9
5
|
import { assert } from '../../utils/index.js';
|
|
10
6
|
import { useFlashRowEffect } from '../flash_row/use_flash_row_effect.js';
|
|
11
7
|
import { PreviewTable } from '../preview_table.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draggable_row_tr.js","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/draggable_row_tr.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"draggable_row_tr.js","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/draggable_row_tr.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EACL,iBAAiB,EACjB,OAAO,EACP,SAAS,EACT,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AACxB,OA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;gBAClD,QAAQ,CAAC,CAAC,OAAO,EAAE,EAAE;oBACnB,IACE,OAAO,CAAC,IAAI,KAAK,SAAS;wBAC1B,OAAO,CAAC,WAAW,KAAK,WAAW,EACnC,CAAC;wBACD,OAAO,OAAO,CAAC;oBACjB,CAAC;oBACD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;gBAC1C,CAAC,CAAC,CAAC;YACL,CAAC;YACD,WAAW;gBACT,QAAQ,CAAC,SAAS,CAAC,CAAC;YACtB,CAAC;YACD,MAAM;gBACJ,QAAQ,CAAC,SAAS,CAAC,CAAC;YACtB,CAAC;SACF,CAAC,CACH,CAAC;IACJ,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,SAAS,CAAC,CAAC,CAAC;IAEjC,iBAAiB,CAAC,GAAG,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC;IAEvC,MAAM,KAAK,GAAG,OAAO,CAAsB,GAAG,EAAE;QAC9C,OAAO;YACL,aAAa;YACb,KAAK;SACN,CAAC;IACJ,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;IAEZ,OAAO,CACL,8BACE,KAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YACxC,gBAAQ,OAAO,EAAE,GAAG,EAAE,WAAW,GAAI,GACR,EAC9B,KAAK,CAAC,IAAI,KAAK,SAAS;gBACvB,YAAY,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,IACrD,CACJ,CAAC;AACJ,CAAC;AAED,MAAM,SAAS,GAAuB,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;AACvD,MAAM,aAAa,GAAuB,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item_order_provider.d.ts","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/item_order_provider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"item_order_provider.d.ts","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/item_order_provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQvC,UAAU,sBAAsB,CAAC,CAAC;IAChC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACrB,cAAc,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAC/C,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,iBAAiB,CAAC,CAAC,GAAG,OAAO,EAC3C,KAAK,EAAE,sBAAsB,CAAC,CAAC,CAAC,2CA4CjC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { reorder } from '@atlaskit/pragmatic-drag-and-drop/reorder';
|
|
3
|
-
import { getReorderDestinationIndex } from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index';
|
|
4
2
|
import { useCallback, useMemo, useState } from 'react';
|
|
3
|
+
import { getReorderDestinationIndex, reorder } from '../../pdnd.cjs';
|
|
5
4
|
import { itemOrderContext } from './item_order_context.js';
|
|
6
5
|
export function ItemOrderProvider(props) {
|
|
7
6
|
// Isolated instances of this component from one another
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item_order_provider.js","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/item_order_provider.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"item_order_provider.js","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/item_order_provider.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEvD,OAAO,EAAE,0BAA0B,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAQ3D,MAAM,UAAU,iBAAiB,CAC/B,KAAgC;IAEhC,wDAAwD;IACxD,MAAM,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,CAAC;IACjE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAClD,MAAM,WAAW,GAAG,WAAW,CAC7B,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE,mBAAmB,EAAE,EAAE,EAAE;QACrD,MAAM,WAAW,GAAG,0BAA0B,CAAC;YAC7C,UAAU;YACV,mBAAmB;YACnB,aAAa;YACb,IAAI,EAAE,UAAU;SACjB,CAAC,CAAC;QAEH,IAAI,WAAW,KAAK,UAAU,EAAE,CAAC;YAC/B,4CAA4C;YAC5C,OAAO;QACT,CAAC;QAED,cAAc,CACZ,OAAO,CAAC;YACN,IAAI,EAAE,KAAK;YACX,UAAU;YACV,WAAW;SACZ,CAAC,CACH,CAAC;IACJ,CAAC,EACD,CAAC,KAAK,EAAE,cAAc,CAAC,CACxB,CAAC;IAEF,MAAM,KAAK,GAAG,OAAO,CACnB,GAAG,EAAE,CAAC,CAAC;QACL,WAAW;QACX,KAAK,EAAE,KAA4B;QACnC,UAAU;KACX,CAAC,EACF,CAAC,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,CACjC,CAAC;IAEF,OAAO,CACL,KAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YACpC,QAAQ,GACiB,CAC7B,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_drop_monitor.d.ts","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/use_drop_monitor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use_drop_monitor.d.ts","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/use_drop_monitor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAevC;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,gBAAgB,EAAE,SAAS,CAAC,OAAO,CAAC,EACpC,OAAO,EAAE,OAAO,QAmDjB"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
2
|
-
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
3
|
-
import { autoScrollForElements } from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
|
|
4
|
-
import { extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
5
1
|
import { useEffect } from 'react';
|
|
2
|
+
import { autoScrollForElements, combine, extractClosestEdge, monitorForElements, } from '../../pdnd.cjs';
|
|
6
3
|
import { assert } from '../../utils/index.js';
|
|
7
4
|
import { useFlashedRowContext } from '../flash_row/flashed_row_context.js';
|
|
8
5
|
import { isItemData } from './item_data.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use_drop_monitor.js","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/use_drop_monitor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use_drop_monitor.js","sourceRoot":"","sources":["../../../../src/components/table/reorder_rows/use_drop_monitor.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EACL,qBAAqB,EACrB,OAAO,EACP,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAE3E,OAAO,EAAE,UA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C;oBAED,MAAM,mBAAmB,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC;oBAE3D,WAAW,CAAC;wBACV,UAAU,EAAE,UAAU,CAAC,KAAK;wBAC5B,aAAa;wBACb,mBAAmB;qBACpB,CAAC,CAAC;oBACH,aAAa,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;gBAC/B,CAAC;aACF,CAAC,EACF,qBAAqB,CAAC;gBACpB,SAAS,EAAE,UAAU;gBACrB,OAAO,EAAE,eAAe;aACzB,CAAC,CACH,CAAC;QACJ,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;AACrE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable no-alert */
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ReactNode, RefObject } from 'react';
|
|
3
3
|
import { useEffect, useMemo, useReducer, useRef } from 'react';
|
|
4
4
|
|
|
5
5
|
import { fullscreenContext, useFullscreen } from './fullscreen_context.js';
|
|
@@ -13,7 +13,11 @@ type DocumentType = Document & {
|
|
|
13
13
|
webkitFullscreenElement: Element | null;
|
|
14
14
|
};
|
|
15
15
|
interface FullscreenProps {
|
|
16
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Callback providing the ref which should be passed to the element that can be displayed fullscreen.
|
|
18
|
+
* @param ref
|
|
19
|
+
*/
|
|
20
|
+
children: (ref: RefObject<HTMLDivElement>) => ReactNode;
|
|
17
21
|
}
|
|
18
22
|
|
|
19
23
|
export function FullScreenProvider(props: FullscreenProps) {
|
|
@@ -78,16 +82,5 @@ function FullscreenInner(props: FullscreenProps) {
|
|
|
78
82
|
}
|
|
79
83
|
}
|
|
80
84
|
}, [isFullScreen]);
|
|
81
|
-
return (
|
|
82
|
-
<div
|
|
83
|
-
ref={ref}
|
|
84
|
-
style={{
|
|
85
|
-
width: '100%',
|
|
86
|
-
height: '100%',
|
|
87
|
-
backgroundColor: 'white',
|
|
88
|
-
}}
|
|
89
|
-
>
|
|
90
|
-
{children}
|
|
91
|
-
</div>
|
|
92
|
-
);
|
|
85
|
+
return children(ref);
|
|
93
86
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// https://github.com/atlassian/pragmatic-drag-and-drop/issues/27
|
|
2
|
+
// Given how `@atlaskit/pragmatic-drag-and-drop` publishes ESM in a non-native way,
|
|
3
|
+
// we have to trick TS into using the CJS build so that our build is compatible
|
|
4
|
+
// with native ESM.
|
|
5
|
+
// We cannot use `verbatimModuleSyntax` ts config option with this pattern.
|
|
6
|
+
export { pointerOutsideOfPreview } from '@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview';
|
|
7
|
+
export { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
|
|
8
|
+
export { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
9
|
+
export { reorder } from '@atlaskit/pragmatic-drag-and-drop/reorder';
|
|
10
|
+
export {
|
|
11
|
+
draggable,
|
|
12
|
+
dropTargetForElements,
|
|
13
|
+
} from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
14
|
+
export { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
15
|
+
export { autoScrollForElements } from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
|
|
16
|
+
export {
|
|
17
|
+
extractClosestEdge,
|
|
18
|
+
attachClosestEdge,
|
|
19
|
+
} from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
20
|
+
export { getReorderDestinationIndex } from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { BlueprintProvider, FocusStyleManager } from '@blueprintjs/core';
|
|
2
|
-
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import type { CSSProperties, MutableRefObject, ReactNode } from 'react';
|
|
3
3
|
import { useCallback, useState } from 'react';
|
|
4
4
|
|
|
5
5
|
import { AccordionProvider } from '../accordion/index.js';
|
|
6
|
+
import { FullScreenProvider } from '../fullscreen/index.js';
|
|
6
7
|
|
|
7
8
|
import { CustomDivPreflight } from './css-reset/customPreflight.js';
|
|
8
9
|
import { RootLayoutProvider } from './root_layout_context.provider.js';
|
|
@@ -27,28 +28,39 @@ export function RootLayout(props: RootLayoutProps) {
|
|
|
27
28
|
typeof document !== 'undefined' ? document.body : null,
|
|
28
29
|
);
|
|
29
30
|
|
|
30
|
-
const
|
|
31
|
+
const refCallback = useCallback((node: HTMLDivElement) => {
|
|
31
32
|
if (node !== null) {
|
|
32
33
|
setRootRef(node);
|
|
33
34
|
}
|
|
34
35
|
}, []);
|
|
35
36
|
|
|
36
37
|
return (
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
38
|
+
<FullScreenProvider>
|
|
39
|
+
{(ref) => (
|
|
40
|
+
<CustomDivPreflight
|
|
41
|
+
id="root-layout"
|
|
42
|
+
ref={(node) => {
|
|
43
|
+
if (node) {
|
|
44
|
+
const mutableRef = ref as MutableRefObject<HTMLDivElement>;
|
|
45
|
+
mutableRef.current = node;
|
|
46
|
+
refCallback(node);
|
|
47
|
+
}
|
|
48
|
+
}}
|
|
49
|
+
style={{
|
|
50
|
+
...style,
|
|
51
|
+
...props.style,
|
|
52
|
+
}}
|
|
53
|
+
translate="no"
|
|
54
|
+
>
|
|
55
|
+
<BlueprintProvider
|
|
56
|
+
{...(rootRef ? { portalContainer: rootRef } : undefined)}
|
|
57
|
+
>
|
|
58
|
+
<RootLayoutProvider innerRef={rootRef}>
|
|
59
|
+
<AccordionProvider>{props.children}</AccordionProvider>
|
|
60
|
+
</RootLayoutProvider>
|
|
61
|
+
</BlueprintProvider>
|
|
62
|
+
</CustomDivPreflight>
|
|
63
|
+
)}
|
|
64
|
+
</FullScreenProvider>
|
|
53
65
|
);
|
|
54
66
|
}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
2
1
|
import type { ElementDragPayload } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
3
|
-
import {
|
|
4
|
-
draggable,
|
|
5
|
-
dropTargetForElements,
|
|
6
|
-
} from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
7
|
-
import { pointerOutsideOfPreview } from '@atlaskit/pragmatic-drag-and-drop/element/pointer-outside-of-preview';
|
|
8
|
-
import { setCustomNativeDragPreview } from '@atlaskit/pragmatic-drag-and-drop/element/set-custom-native-drag-preview';
|
|
9
|
-
import {
|
|
10
|
-
attachClosestEdge,
|
|
11
|
-
extractClosestEdge,
|
|
12
|
-
} from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
13
2
|
import type { Row, RowData } from '@tanstack/react-table';
|
|
14
3
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
15
4
|
import { createPortal } from 'react-dom';
|
|
16
5
|
|
|
6
|
+
import {
|
|
7
|
+
attachClosestEdge,
|
|
8
|
+
combine,
|
|
9
|
+
draggable,
|
|
10
|
+
dropTargetForElements,
|
|
11
|
+
extractClosestEdge,
|
|
12
|
+
pointerOutsideOfPreview,
|
|
13
|
+
setCustomNativeDragPreview,
|
|
14
|
+
} from '../../pdnd.cjs';
|
|
17
15
|
import { assert } from '../../utils/index.js';
|
|
18
16
|
import { useFlashRowEffect } from '../flash_row/use_flash_row_effect.js';
|
|
19
17
|
import { PreviewTable } from '../preview_table.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { reorder } from '@atlaskit/pragmatic-drag-and-drop/reorder';
|
|
2
|
-
import { getReorderDestinationIndex } from '@atlaskit/pragmatic-drag-and-drop-hitbox/util/get-reorder-destination-index';
|
|
3
1
|
import type { Row } from '@tanstack/react-table';
|
|
4
2
|
import type { ReactNode } from 'react';
|
|
5
3
|
import { useCallback, useMemo, useState } from 'react';
|
|
6
4
|
|
|
5
|
+
import { getReorderDestinationIndex, reorder } from '../../pdnd.cjs';
|
|
6
|
+
|
|
7
7
|
import type { ReorderItemCallback } from './item_order_context.js';
|
|
8
8
|
import { itemOrderContext } from './item_order_context.js';
|
|
9
9
|
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { combine } from '@atlaskit/pragmatic-drag-and-drop/combine';
|
|
2
1
|
import type { ElementDragPayload } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
3
|
-
import { monitorForElements } from '@atlaskit/pragmatic-drag-and-drop/element/adapter';
|
|
4
|
-
import { autoScrollForElements } from '@atlaskit/pragmatic-drag-and-drop-auto-scroll/element';
|
|
5
|
-
import { extractClosestEdge } from '@atlaskit/pragmatic-drag-and-drop-hitbox/closest-edge';
|
|
6
2
|
import type { RefObject } from 'react';
|
|
7
3
|
import { useEffect } from 'react';
|
|
8
4
|
|
|
5
|
+
import {
|
|
6
|
+
autoScrollForElements,
|
|
7
|
+
combine,
|
|
8
|
+
extractClosestEdge,
|
|
9
|
+
monitorForElements,
|
|
10
|
+
} from '../../pdnd.cjs';
|
|
9
11
|
import { assert } from '../../utils/index.js';
|
|
10
12
|
import { useFlashedRowContext } from '../flash_row/flashed_row_context.js';
|
|
11
13
|
|