Add yet-another-react-lightbox package and update .gitignore to exclude node_modules
This commit is contained in:
2
frontend/node_modules/dnd-core/dist/actions/dragDrop/beginDrag.d.ts
generated
vendored
2
frontend/node_modules/dnd-core/dist/actions/dragDrop/beginDrag.d.ts
generated
vendored
@@ -1,2 +0,0 @@
|
||||
import type { Action, BeginDragOptions, BeginDragPayload, DragDropManager, Identifier } from '../../interfaces.js';
|
||||
export declare function createBeginDrag(manager: DragDropManager): (sourceIds?: Identifier[], options?: BeginDragOptions) => Action<BeginDragPayload> | undefined;
|
||||
84
frontend/node_modules/dnd-core/dist/actions/dragDrop/beginDrag.js
generated
vendored
84
frontend/node_modules/dnd-core/dist/actions/dragDrop/beginDrag.js
generated
vendored
@@ -1,84 +0,0 @@
|
||||
import { invariant } from '@react-dnd/invariant';
|
||||
import { isObject } from '../../utils/js_utils.js';
|
||||
import { setClientOffset } from './local/setClientOffset.js';
|
||||
import { BEGIN_DRAG, INIT_COORDS } from './types.js';
|
||||
const ResetCoordinatesAction = {
|
||||
type: INIT_COORDS,
|
||||
payload: {
|
||||
clientOffset: null,
|
||||
sourceClientOffset: null
|
||||
}
|
||||
};
|
||||
export function createBeginDrag(manager) {
|
||||
return function beginDrag(sourceIds = [], options = {
|
||||
publishSource: true
|
||||
}) {
|
||||
const { publishSource =true , clientOffset , getSourceClientOffset , } = options;
|
||||
const monitor = manager.getMonitor();
|
||||
const registry = manager.getRegistry();
|
||||
// Initialize the coordinates using the client offset
|
||||
manager.dispatch(setClientOffset(clientOffset));
|
||||
verifyInvariants(sourceIds, monitor, registry);
|
||||
// Get the draggable source
|
||||
const sourceId = getDraggableSource(sourceIds, monitor);
|
||||
if (sourceId == null) {
|
||||
manager.dispatch(ResetCoordinatesAction);
|
||||
return;
|
||||
}
|
||||
// Get the source client offset
|
||||
let sourceClientOffset = null;
|
||||
if (clientOffset) {
|
||||
if (!getSourceClientOffset) {
|
||||
throw new Error('getSourceClientOffset must be defined');
|
||||
}
|
||||
verifyGetSourceClientOffsetIsFunction(getSourceClientOffset);
|
||||
sourceClientOffset = getSourceClientOffset(sourceId);
|
||||
}
|
||||
// Initialize the full coordinates
|
||||
manager.dispatch(setClientOffset(clientOffset, sourceClientOffset));
|
||||
const source = registry.getSource(sourceId);
|
||||
const item = source.beginDrag(monitor, sourceId);
|
||||
// If source.beginDrag returns null, this is an indicator to cancel the drag
|
||||
if (item == null) {
|
||||
return undefined;
|
||||
}
|
||||
verifyItemIsObject(item);
|
||||
registry.pinSource(sourceId);
|
||||
const itemType = registry.getSourceType(sourceId);
|
||||
return {
|
||||
type: BEGIN_DRAG,
|
||||
payload: {
|
||||
itemType,
|
||||
item,
|
||||
sourceId,
|
||||
clientOffset: clientOffset || null,
|
||||
sourceClientOffset: sourceClientOffset || null,
|
||||
isSourcePublic: !!publishSource
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
function verifyInvariants(sourceIds, monitor, registry) {
|
||||
invariant(!monitor.isDragging(), 'Cannot call beginDrag while dragging.');
|
||||
sourceIds.forEach(function(sourceId) {
|
||||
invariant(registry.getSource(sourceId), 'Expected sourceIds to be registered.');
|
||||
});
|
||||
}
|
||||
function verifyGetSourceClientOffsetIsFunction(getSourceClientOffset) {
|
||||
invariant(typeof getSourceClientOffset === 'function', 'When clientOffset is provided, getSourceClientOffset must be a function.');
|
||||
}
|
||||
function verifyItemIsObject(item) {
|
||||
invariant(isObject(item), 'Item must be an object.');
|
||||
}
|
||||
function getDraggableSource(sourceIds, monitor) {
|
||||
let sourceId = null;
|
||||
for(let i = sourceIds.length - 1; i >= 0; i--){
|
||||
if (monitor.canDragSource(sourceIds[i])) {
|
||||
sourceId = sourceIds[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
return sourceId;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=beginDrag.js.map
|
||||
1
frontend/node_modules/dnd-core/dist/actions/dragDrop/beginDrag.js.map
generated
vendored
1
frontend/node_modules/dnd-core/dist/actions/dragDrop/beginDrag.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
frontend/node_modules/dnd-core/dist/actions/dragDrop/drop.d.ts
generated
vendored
2
frontend/node_modules/dnd-core/dist/actions/dragDrop/drop.d.ts
generated
vendored
@@ -1,2 +0,0 @@
|
||||
import type { DragDropManager } from '../../interfaces.js';
|
||||
export declare function createDrop(manager: DragDropManager): (options?: {}) => void;
|
||||
73
frontend/node_modules/dnd-core/dist/actions/dragDrop/drop.js
generated
vendored
73
frontend/node_modules/dnd-core/dist/actions/dragDrop/drop.js
generated
vendored
@@ -1,73 +0,0 @@
|
||||
function _defineProperty(obj, key, value) {
|
||||
if (key in obj) {
|
||||
Object.defineProperty(obj, key, {
|
||||
value: value,
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true
|
||||
});
|
||||
} else {
|
||||
obj[key] = value;
|
||||
}
|
||||
return obj;
|
||||
}
|
||||
function _objectSpread(target) {
|
||||
for(var i = 1; i < arguments.length; i++){
|
||||
var source = arguments[i] != null ? arguments[i] : {};
|
||||
var ownKeys = Object.keys(source);
|
||||
if (typeof Object.getOwnPropertySymbols === 'function') {
|
||||
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
||||
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
||||
}));
|
||||
}
|
||||
ownKeys.forEach(function(key) {
|
||||
_defineProperty(target, key, source[key]);
|
||||
});
|
||||
}
|
||||
return target;
|
||||
}
|
||||
import { invariant } from '@react-dnd/invariant';
|
||||
import { isObject } from '../../utils/js_utils.js';
|
||||
import { DROP } from './types.js';
|
||||
export function createDrop(manager) {
|
||||
return function drop(options = {}) {
|
||||
const monitor = manager.getMonitor();
|
||||
const registry = manager.getRegistry();
|
||||
verifyInvariants(monitor);
|
||||
const targetIds = getDroppableTargets(monitor);
|
||||
// Multiple actions are dispatched here, which is why this doesn't return an action
|
||||
targetIds.forEach((targetId, index)=>{
|
||||
const dropResult = determineDropResult(targetId, index, registry, monitor);
|
||||
const action = {
|
||||
type: DROP,
|
||||
payload: {
|
||||
dropResult: _objectSpread({}, options, dropResult)
|
||||
}
|
||||
};
|
||||
manager.dispatch(action);
|
||||
});
|
||||
};
|
||||
}
|
||||
function verifyInvariants(monitor) {
|
||||
invariant(monitor.isDragging(), 'Cannot call drop while not dragging.');
|
||||
invariant(!monitor.didDrop(), 'Cannot call drop twice during one drag operation.');
|
||||
}
|
||||
function determineDropResult(targetId, index, registry, monitor) {
|
||||
const target = registry.getTarget(targetId);
|
||||
let dropResult = target ? target.drop(monitor, targetId) : undefined;
|
||||
verifyDropResultType(dropResult);
|
||||
if (typeof dropResult === 'undefined') {
|
||||
dropResult = index === 0 ? {} : monitor.getDropResult();
|
||||
}
|
||||
return dropResult;
|
||||
}
|
||||
function verifyDropResultType(dropResult) {
|
||||
invariant(typeof dropResult === 'undefined' || isObject(dropResult), 'Drop result must either be an object or undefined.');
|
||||
}
|
||||
function getDroppableTargets(monitor) {
|
||||
const targetIds = monitor.getTargetIds().filter(monitor.canDropOnTarget, monitor);
|
||||
targetIds.reverse();
|
||||
return targetIds;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=drop.js.map
|
||||
1
frontend/node_modules/dnd-core/dist/actions/dragDrop/drop.js.map
generated
vendored
1
frontend/node_modules/dnd-core/dist/actions/dragDrop/drop.js.map
generated
vendored
@@ -1 +0,0 @@
|
||||
{"version":3,"sources":["../../../src/actions/dragDrop/drop.ts"],"sourcesContent":["import { invariant } from '@react-dnd/invariant'\n\nimport type {\n\tAction,\n\tDragDropManager,\n\tDragDropMonitor,\n\tDropPayload,\n\tHandlerRegistry,\n\tIdentifier,\n} from '../../interfaces.js'\nimport { isObject } from '../../utils/js_utils.js'\nimport { DROP } from './types.js'\n\nexport function createDrop(manager: DragDropManager) {\n\treturn function drop(options = {}): void {\n\t\tconst monitor = manager.getMonitor()\n\t\tconst registry = manager.getRegistry()\n\t\tverifyInvariants(monitor)\n\t\tconst targetIds = getDroppableTargets(monitor)\n\n\t\t// Multiple actions are dispatched here, which is why this doesn't return an action\n\t\ttargetIds.forEach((targetId, index) => {\n\t\t\tconst dropResult = determineDropResult(targetId, index, registry, monitor)\n\t\t\tconst action: Action<DropPayload> = {\n\t\t\t\ttype: DROP,\n\t\t\t\tpayload: {\n\t\t\t\t\tdropResult: {\n\t\t\t\t\t\t...options,\n\t\t\t\t\t\t...dropResult,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}\n\t\t\tmanager.dispatch(action)\n\t\t})\n\t}\n}\n\nfunction verifyInvariants(monitor: DragDropMonitor) {\n\tinvariant(monitor.isDragging(), 'Cannot call drop while not dragging.')\n\tinvariant(\n\t\t!monitor.didDrop(),\n\t\t'Cannot call drop twice during one drag operation.',\n\t)\n}\n\nfunction determineDropResult(\n\ttargetId: Identifier,\n\tindex: number,\n\tregistry: HandlerRegistry,\n\tmonitor: DragDropMonitor,\n) {\n\tconst target = registry.getTarget(targetId)\n\tlet dropResult = target ? target.drop(monitor, targetId) : undefined\n\tverifyDropResultType(dropResult)\n\tif (typeof dropResult === 'undefined') {\n\t\tdropResult = index === 0 ? {} : monitor.getDropResult()\n\t}\n\treturn dropResult\n}\n\nfunction verifyDropResultType(dropResult: any) {\n\tinvariant(\n\t\ttypeof dropResult === 'undefined' || isObject(dropResult),\n\t\t'Drop result must either be an object or undefined.',\n\t)\n}\n\nfunction getDroppableTargets(monitor: DragDropMonitor) {\n\tconst targetIds = monitor\n\t\t.getTargetIds()\n\t\t.filter(monitor.canDropOnTarget, monitor)\n\ttargetIds.reverse()\n\treturn targetIds\n}\n"],"names":["invariant","isObject","DROP","createDrop","manager","drop","options","monitor","getMonitor","registry","getRegistry","verifyInvariants","targetIds","getDroppableTargets","forEach","targetId","index","dropResult","determineDropResult","action","type","payload","dispatch","isDragging","didDrop","target","getTarget","undefined","verifyDropResultType","getDropResult","getTargetIds","filter","canDropOnTarget","reverse"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAASA,SAAS,QAAQ,sBAAsB,CAAA;AAUhD,SAASC,QAAQ,QAAQ,yBAAyB,CAAA;AAClD,SAASC,IAAI,QAAQ,YAAY,CAAA;AAEjC,OAAO,SAASC,UAAU,CAACC,OAAwB,EAAE;IACpD,OAAO,SAASC,IAAI,CAACC,OAAO,GAAG,EAAE,EAAQ;QACxC,MAAMC,OAAO,GAAGH,OAAO,CAACI,UAAU,EAAE;QACpC,MAAMC,QAAQ,GAAGL,OAAO,CAACM,WAAW,EAAE;QACtCC,gBAAgB,CAACJ,OAAO,CAAC;QACzB,MAAMK,SAAS,GAAGC,mBAAmB,CAACN,OAAO,CAAC;QAE9C,mFAAmF;QACnFK,SAAS,CAACE,OAAO,CAAC,CAACC,QAAQ,EAAEC,KAAK,GAAK;YACtC,MAAMC,UAAU,GAAGC,mBAAmB,CAACH,QAAQ,EAAEC,KAAK,EAAEP,QAAQ,EAAEF,OAAO,CAAC;YAC1E,MAAMY,MAAM,GAAwB;gBACnCC,IAAI,EAAElB,IAAI;gBACVmB,OAAO,EAAE;oBACRJ,UAAU,EAAE,kBACRX,OAAO,EACPW,UAAU,CACb;iBACD;aACD;YACDb,OAAO,CAACkB,QAAQ,CAACH,MAAM,CAAC;SACxB,CAAC;KACF,CAAA;CACD;AAED,SAASR,gBAAgB,CAACJ,OAAwB,EAAE;IACnDP,SAAS,CAACO,OAAO,CAACgB,UAAU,EAAE,EAAE,sCAAsC,CAAC;IACvEvB,SAAS,CACR,CAACO,OAAO,CAACiB,OAAO,EAAE,EAClB,mDAAmD,CACnD;CACD;AAED,SAASN,mBAAmB,CAC3BH,QAAoB,EACpBC,KAAa,EACbP,QAAyB,EACzBF,OAAwB,EACvB;IACD,MAAMkB,MAAM,GAAGhB,QAAQ,CAACiB,SAAS,CAACX,QAAQ,CAAC;IAC3C,IAAIE,UAAU,GAAGQ,MAAM,GAAGA,MAAM,CAACpB,IAAI,CAACE,OAAO,EAAEQ,QAAQ,CAAC,GAAGY,SAAS;IACpEC,oBAAoB,CAACX,UAAU,CAAC;IAChC,IAAI,OAAOA,UAAU,KAAK,WAAW,EAAE;QACtCA,UAAU,GAAGD,KAAK,KAAK,CAAC,GAAG,EAAE,GAAGT,OAAO,CAACsB,aAAa,EAAE;KACvD;IACD,OAAOZ,UAAU,CAAA;CACjB;AAED,SAASW,oBAAoB,CAACX,UAAe,EAAE;IAC9CjB,SAAS,CACR,OAAOiB,UAAU,KAAK,WAAW,IAAIhB,QAAQ,CAACgB,UAAU,CAAC,EACzD,oDAAoD,CACpD;CACD;AAED,SAASJ,mBAAmB,CAACN,OAAwB,EAAE;IACtD,MAAMK,SAAS,GAAGL,OAAO,CACvBuB,YAAY,EAAE,CACdC,MAAM,CAACxB,OAAO,CAACyB,eAAe,EAAEzB,OAAO,CAAC;IAC1CK,SAAS,CAACqB,OAAO,EAAE;IACnB,OAAOrB,SAAS,CAAA;CAChB"}
|
||||
2
frontend/node_modules/dnd-core/dist/actions/dragDrop/endDrag.d.ts
generated
vendored
2
frontend/node_modules/dnd-core/dist/actions/dragDrop/endDrag.d.ts
generated
vendored
@@ -1,2 +0,0 @@
|
||||
import type { DragDropManager, SentinelAction } from '../../interfaces.js';
|
||||
export declare function createEndDrag(manager: DragDropManager): () => SentinelAction;
|
||||
23
frontend/node_modules/dnd-core/dist/actions/dragDrop/endDrag.js
generated
vendored
23
frontend/node_modules/dnd-core/dist/actions/dragDrop/endDrag.js
generated
vendored
@@ -1,23 +0,0 @@
|
||||
import { invariant } from '@react-dnd/invariant';
|
||||
import { END_DRAG } from './types.js';
|
||||
export function createEndDrag(manager) {
|
||||
return function endDrag() {
|
||||
const monitor = manager.getMonitor();
|
||||
const registry = manager.getRegistry();
|
||||
verifyIsDragging(monitor);
|
||||
const sourceId = monitor.getSourceId();
|
||||
if (sourceId != null) {
|
||||
const source = registry.getSource(sourceId, true);
|
||||
source.endDrag(monitor, sourceId);
|
||||
registry.unpinSource();
|
||||
}
|
||||
return {
|
||||
type: END_DRAG
|
||||
};
|
||||
};
|
||||
}
|
||||
function verifyIsDragging(monitor) {
|
||||
invariant(monitor.isDragging(), 'Cannot call endDrag while not dragging.');
|
||||
}
|
||||
|
||||
//# sourceMappingURL=endDrag.js.map
|
||||
1
frontend/node_modules/dnd-core/dist/actions/dragDrop/endDrag.js.map
generated
vendored
1
frontend/node_modules/dnd-core/dist/actions/dragDrop/endDrag.js.map
generated
vendored
@@ -1 +0,0 @@
|
||||
{"version":3,"sources":["../../../src/actions/dragDrop/endDrag.ts"],"sourcesContent":["import { invariant } from '@react-dnd/invariant'\n\nimport type {\n\tDragDropManager,\n\tDragDropMonitor,\n\tSentinelAction,\n} from '../../interfaces.js'\nimport { END_DRAG } from './types.js'\n\nexport function createEndDrag(manager: DragDropManager) {\n\treturn function endDrag(): SentinelAction {\n\t\tconst monitor = manager.getMonitor()\n\t\tconst registry = manager.getRegistry()\n\t\tverifyIsDragging(monitor)\n\n\t\tconst sourceId = monitor.getSourceId()\n\t\tif (sourceId != null) {\n\t\t\tconst source = registry.getSource(sourceId, true)\n\t\t\tsource.endDrag(monitor, sourceId)\n\t\t\tregistry.unpinSource()\n\t\t}\n\t\treturn { type: END_DRAG }\n\t}\n}\n\nfunction verifyIsDragging(monitor: DragDropMonitor) {\n\tinvariant(monitor.isDragging(), 'Cannot call endDrag while not dragging.')\n}\n"],"names":["invariant","END_DRAG","createEndDrag","manager","endDrag","monitor","getMonitor","registry","getRegistry","verifyIsDragging","sourceId","getSourceId","source","getSource","unpinSource","type","isDragging"],"mappings":"AAAA,SAASA,SAAS,QAAQ,sBAAsB,CAAA;AAOhD,SAASC,QAAQ,QAAQ,YAAY,CAAA;AAErC,OAAO,SAASC,aAAa,CAACC,OAAwB,EAAE;IACvD,OAAO,SAASC,OAAO,GAAmB;QACzC,MAAMC,OAAO,GAAGF,OAAO,CAACG,UAAU,EAAE;QACpC,MAAMC,QAAQ,GAAGJ,OAAO,CAACK,WAAW,EAAE;QACtCC,gBAAgB,CAACJ,OAAO,CAAC;QAEzB,MAAMK,QAAQ,GAAGL,OAAO,CAACM,WAAW,EAAE;QACtC,IAAID,QAAQ,IAAI,IAAI,EAAE;YACrB,MAAME,MAAM,GAAGL,QAAQ,CAACM,SAAS,CAACH,QAAQ,EAAE,IAAI,CAAC;YACjDE,MAAM,CAACR,OAAO,CAACC,OAAO,EAAEK,QAAQ,CAAC;YACjCH,QAAQ,CAACO,WAAW,EAAE;SACtB;QACD,OAAO;YAAEC,IAAI,EAAEd,QAAQ;SAAE,CAAA;KACzB,CAAA;CACD;AAED,SAASQ,gBAAgB,CAACJ,OAAwB,EAAE;IACnDL,SAAS,CAACK,OAAO,CAACW,UAAU,EAAE,EAAE,yCAAyC,CAAC;CAC1E"}
|
||||
2
frontend/node_modules/dnd-core/dist/actions/dragDrop/hover.d.ts
generated
vendored
2
frontend/node_modules/dnd-core/dist/actions/dragDrop/hover.d.ts
generated
vendored
@@ -1,2 +0,0 @@
|
||||
import type { Action, DragDropManager, HoverOptions, HoverPayload } from '../../interfaces.js';
|
||||
export declare function createHover(manager: DragDropManager): (targetIdsArg: string[], { clientOffset }?: HoverOptions) => Action<HoverPayload>;
|
||||
56
frontend/node_modules/dnd-core/dist/actions/dragDrop/hover.js
generated
vendored
56
frontend/node_modules/dnd-core/dist/actions/dragDrop/hover.js
generated
vendored
@@ -1,56 +0,0 @@
|
||||
import { invariant } from '@react-dnd/invariant';
|
||||
import { matchesType } from '../../utils/matchesType.js';
|
||||
import { HOVER } from './types.js';
|
||||
export function createHover(manager) {
|
||||
return function hover(targetIdsArg, { clientOffset } = {}) {
|
||||
verifyTargetIdsIsArray(targetIdsArg);
|
||||
const targetIds = targetIdsArg.slice(0);
|
||||
const monitor = manager.getMonitor();
|
||||
const registry = manager.getRegistry();
|
||||
const draggedItemType = monitor.getItemType();
|
||||
removeNonMatchingTargetIds(targetIds, registry, draggedItemType);
|
||||
checkInvariants(targetIds, monitor, registry);
|
||||
hoverAllTargets(targetIds, monitor, registry);
|
||||
return {
|
||||
type: HOVER,
|
||||
payload: {
|
||||
targetIds,
|
||||
clientOffset: clientOffset || null
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
function verifyTargetIdsIsArray(targetIdsArg) {
|
||||
invariant(Array.isArray(targetIdsArg), 'Expected targetIds to be an array.');
|
||||
}
|
||||
function checkInvariants(targetIds, monitor, registry) {
|
||||
invariant(monitor.isDragging(), 'Cannot call hover while not dragging.');
|
||||
invariant(!monitor.didDrop(), 'Cannot call hover after drop.');
|
||||
for(let i = 0; i < targetIds.length; i++){
|
||||
const targetId = targetIds[i];
|
||||
invariant(targetIds.lastIndexOf(targetId) === i, 'Expected targetIds to be unique in the passed array.');
|
||||
const target = registry.getTarget(targetId);
|
||||
invariant(target, 'Expected targetIds to be registered.');
|
||||
}
|
||||
}
|
||||
function removeNonMatchingTargetIds(targetIds, registry, draggedItemType) {
|
||||
// Remove those targetIds that don't match the targetType. This
|
||||
// fixes shallow isOver which would only be non-shallow because of
|
||||
// non-matching targets.
|
||||
for(let i = targetIds.length - 1; i >= 0; i--){
|
||||
const targetId = targetIds[i];
|
||||
const targetType = registry.getTargetType(targetId);
|
||||
if (!matchesType(targetType, draggedItemType)) {
|
||||
targetIds.splice(i, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
function hoverAllTargets(targetIds, monitor, registry) {
|
||||
// Finally call hover on all matching targets.
|
||||
targetIds.forEach(function(targetId) {
|
||||
const target = registry.getTarget(targetId);
|
||||
target.hover(monitor, targetId);
|
||||
});
|
||||
}
|
||||
|
||||
//# sourceMappingURL=hover.js.map
|
||||
1
frontend/node_modules/dnd-core/dist/actions/dragDrop/hover.js.map
generated
vendored
1
frontend/node_modules/dnd-core/dist/actions/dragDrop/hover.js.map
generated
vendored
File diff suppressed because one or more lines are too long
3
frontend/node_modules/dnd-core/dist/actions/dragDrop/index.d.ts
generated
vendored
3
frontend/node_modules/dnd-core/dist/actions/dragDrop/index.d.ts
generated
vendored
@@ -1,3 +0,0 @@
|
||||
import type { DragDropActions, DragDropManager } from '../../interfaces.js';
|
||||
export * from './types.js';
|
||||
export declare function createDragDropActions(manager: DragDropManager): DragDropActions;
|
||||
17
frontend/node_modules/dnd-core/dist/actions/dragDrop/index.js
generated
vendored
17
frontend/node_modules/dnd-core/dist/actions/dragDrop/index.js
generated
vendored
@@ -1,17 +0,0 @@
|
||||
import { createBeginDrag } from './beginDrag.js';
|
||||
import { createDrop } from './drop.js';
|
||||
import { createEndDrag } from './endDrag.js';
|
||||
import { createHover } from './hover.js';
|
||||
import { createPublishDragSource } from './publishDragSource.js';
|
||||
export * from './types.js';
|
||||
export function createDragDropActions(manager) {
|
||||
return {
|
||||
beginDrag: createBeginDrag(manager),
|
||||
publishDragSource: createPublishDragSource(manager),
|
||||
hover: createHover(manager),
|
||||
drop: createDrop(manager),
|
||||
endDrag: createEndDrag(manager)
|
||||
};
|
||||
}
|
||||
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
frontend/node_modules/dnd-core/dist/actions/dragDrop/index.js.map
generated
vendored
1
frontend/node_modules/dnd-core/dist/actions/dragDrop/index.js.map
generated
vendored
@@ -1 +0,0 @@
|
||||
{"version":3,"sources":["../../../src/actions/dragDrop/index.ts"],"sourcesContent":["import type { DragDropActions, DragDropManager } from '../../interfaces.js'\nimport { createBeginDrag } from './beginDrag.js'\nimport { createDrop } from './drop.js'\nimport { createEndDrag } from './endDrag.js'\nimport { createHover } from './hover.js'\nimport { createPublishDragSource } from './publishDragSource.js'\n\nexport * from './types.js'\n\nexport function createDragDropActions(\n\tmanager: DragDropManager,\n): DragDropActions {\n\treturn {\n\t\tbeginDrag: createBeginDrag(manager),\n\t\tpublishDragSource: createPublishDragSource(manager),\n\t\thover: createHover(manager),\n\t\tdrop: createDrop(manager),\n\t\tendDrag: createEndDrag(manager),\n\t}\n}\n"],"names":["createBeginDrag","createDrop","createEndDrag","createHover","createPublishDragSource","createDragDropActions","manager","beginDrag","publishDragSource","hover","drop","endDrag"],"mappings":"AACA,SAASA,eAAe,QAAQ,gBAAgB,CAAA;AAChD,SAASC,UAAU,QAAQ,WAAW,CAAA;AACtC,SAASC,aAAa,QAAQ,cAAc,CAAA;AAC5C,SAASC,WAAW,QAAQ,YAAY,CAAA;AACxC,SAASC,uBAAuB,QAAQ,wBAAwB,CAAA;AAEhE,cAAc,YAAY,CAAA;AAE1B,OAAO,SAASC,qBAAqB,CACpCC,OAAwB,EACN;IAClB,OAAO;QACNC,SAAS,EAAEP,eAAe,CAACM,OAAO,CAAC;QACnCE,iBAAiB,EAAEJ,uBAAuB,CAACE,OAAO,CAAC;QACnDG,KAAK,EAAEN,WAAW,CAACG,OAAO,CAAC;QAC3BI,IAAI,EAAET,UAAU,CAACK,OAAO,CAAC;QACzBK,OAAO,EAAET,aAAa,CAACI,OAAO,CAAC;KAC/B,CAAA;CACD"}
|
||||
3
frontend/node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.d.ts
generated
vendored
3
frontend/node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.d.ts
generated
vendored
@@ -1,3 +0,0 @@
|
||||
import type { AnyAction } from 'redux';
|
||||
import type { XYCoord } from '../../../interfaces.js';
|
||||
export declare function setClientOffset(clientOffset: XYCoord | null | undefined, sourceClientOffset?: XYCoord | null | undefined): AnyAction;
|
||||
12
frontend/node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.js
generated
vendored
12
frontend/node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.js
generated
vendored
@@ -1,12 +0,0 @@
|
||||
import { INIT_COORDS } from '../types.js';
|
||||
export function setClientOffset(clientOffset, sourceClientOffset) {
|
||||
return {
|
||||
type: INIT_COORDS,
|
||||
payload: {
|
||||
sourceClientOffset: sourceClientOffset || null,
|
||||
clientOffset: clientOffset || null
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
//# sourceMappingURL=setClientOffset.js.map
|
||||
1
frontend/node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.js.map
generated
vendored
1
frontend/node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.js.map
generated
vendored
@@ -1 +0,0 @@
|
||||
{"version":3,"sources":["../../../../src/actions/dragDrop/local/setClientOffset.ts"],"sourcesContent":["import type { AnyAction } from 'redux'\n\nimport type { XYCoord } from '../../../interfaces.js'\nimport { INIT_COORDS } from '../types.js'\n\nexport function setClientOffset(\n\tclientOffset: XYCoord | null | undefined,\n\tsourceClientOffset?: XYCoord | null | undefined,\n): AnyAction {\n\treturn {\n\t\ttype: INIT_COORDS,\n\t\tpayload: {\n\t\t\tsourceClientOffset: sourceClientOffset || null,\n\t\t\tclientOffset: clientOffset || null,\n\t\t},\n\t}\n}\n"],"names":["INIT_COORDS","setClientOffset","clientOffset","sourceClientOffset","type","payload"],"mappings":"AAGA,SAASA,WAAW,QAAQ,aAAa,CAAA;AAEzC,OAAO,SAASC,eAAe,CAC9BC,YAAwC,EACxCC,kBAA+C,EACnC;IACZ,OAAO;QACNC,IAAI,EAAEJ,WAAW;QACjBK,OAAO,EAAE;YACRF,kBAAkB,EAAEA,kBAAkB,IAAI,IAAI;YAC9CD,YAAY,EAAEA,YAAY,IAAI,IAAI;SAClC;KACD,CAAA;CACD"}
|
||||
2
frontend/node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.d.ts
generated
vendored
2
frontend/node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.d.ts
generated
vendored
@@ -1,2 +0,0 @@
|
||||
import type { DragDropManager, SentinelAction } from '../../interfaces.js';
|
||||
export declare function createPublishDragSource(manager: DragDropManager): () => SentinelAction | undefined;
|
||||
14
frontend/node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.js
generated
vendored
14
frontend/node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.js
generated
vendored
@@ -1,14 +0,0 @@
|
||||
import { PUBLISH_DRAG_SOURCE } from './types.js';
|
||||
export function createPublishDragSource(manager) {
|
||||
return function publishDragSource() {
|
||||
const monitor = manager.getMonitor();
|
||||
if (monitor.isDragging()) {
|
||||
return {
|
||||
type: PUBLISH_DRAG_SOURCE
|
||||
};
|
||||
}
|
||||
return;
|
||||
};
|
||||
}
|
||||
|
||||
//# sourceMappingURL=publishDragSource.js.map
|
||||
1
frontend/node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.js.map
generated
vendored
1
frontend/node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.js.map
generated
vendored
@@ -1 +0,0 @@
|
||||
{"version":3,"sources":["../../../src/actions/dragDrop/publishDragSource.ts"],"sourcesContent":["import type { DragDropManager, SentinelAction } from '../../interfaces.js'\nimport { PUBLISH_DRAG_SOURCE } from './types.js'\n\nexport function createPublishDragSource(manager: DragDropManager) {\n\treturn function publishDragSource(): SentinelAction | undefined {\n\t\tconst monitor = manager.getMonitor()\n\t\tif (monitor.isDragging()) {\n\t\t\treturn { type: PUBLISH_DRAG_SOURCE }\n\t\t}\n\t\treturn\n\t}\n}\n"],"names":["PUBLISH_DRAG_SOURCE","createPublishDragSource","manager","publishDragSource","monitor","getMonitor","isDragging","type"],"mappings":"AACA,SAASA,mBAAmB,QAAQ,YAAY,CAAA;AAEhD,OAAO,SAASC,uBAAuB,CAACC,OAAwB,EAAE;IACjE,OAAO,SAASC,iBAAiB,GAA+B;QAC/D,MAAMC,OAAO,GAAGF,OAAO,CAACG,UAAU,EAAE;QACpC,IAAID,OAAO,CAACE,UAAU,EAAE,EAAE;YACzB,OAAO;gBAAEC,IAAI,EAAEP,mBAAmB;aAAE,CAAA;SACpC;QACD,OAAM;KACN,CAAA;CACD"}
|
||||
6
frontend/node_modules/dnd-core/dist/actions/dragDrop/types.d.ts
generated
vendored
6
frontend/node_modules/dnd-core/dist/actions/dragDrop/types.d.ts
generated
vendored
@@ -1,6 +0,0 @@
|
||||
export declare const INIT_COORDS = "dnd-core/INIT_COORDS";
|
||||
export declare const BEGIN_DRAG = "dnd-core/BEGIN_DRAG";
|
||||
export declare const PUBLISH_DRAG_SOURCE = "dnd-core/PUBLISH_DRAG_SOURCE";
|
||||
export declare const HOVER = "dnd-core/HOVER";
|
||||
export declare const DROP = "dnd-core/DROP";
|
||||
export declare const END_DRAG = "dnd-core/END_DRAG";
|
||||
8
frontend/node_modules/dnd-core/dist/actions/dragDrop/types.js
generated
vendored
8
frontend/node_modules/dnd-core/dist/actions/dragDrop/types.js
generated
vendored
@@ -1,8 +0,0 @@
|
||||
export const INIT_COORDS = 'dnd-core/INIT_COORDS';
|
||||
export const BEGIN_DRAG = 'dnd-core/BEGIN_DRAG';
|
||||
export const PUBLISH_DRAG_SOURCE = 'dnd-core/PUBLISH_DRAG_SOURCE';
|
||||
export const HOVER = 'dnd-core/HOVER';
|
||||
export const DROP = 'dnd-core/DROP';
|
||||
export const END_DRAG = 'dnd-core/END_DRAG';
|
||||
|
||||
//# sourceMappingURL=types.js.map
|
||||
1
frontend/node_modules/dnd-core/dist/actions/dragDrop/types.js.map
generated
vendored
1
frontend/node_modules/dnd-core/dist/actions/dragDrop/types.js.map
generated
vendored
@@ -1 +0,0 @@
|
||||
{"version":3,"sources":["../../../src/actions/dragDrop/types.ts"],"sourcesContent":["export const INIT_COORDS = 'dnd-core/INIT_COORDS'\nexport const BEGIN_DRAG = 'dnd-core/BEGIN_DRAG'\nexport const PUBLISH_DRAG_SOURCE = 'dnd-core/PUBLISH_DRAG_SOURCE'\nexport const HOVER = 'dnd-core/HOVER'\nexport const DROP = 'dnd-core/DROP'\nexport const END_DRAG = 'dnd-core/END_DRAG'\n"],"names":["INIT_COORDS","BEGIN_DRAG","PUBLISH_DRAG_SOURCE","HOVER","DROP","END_DRAG"],"mappings":"AAAA,OAAO,MAAMA,WAAW,GAAG,sBAAsB,CAAA;AACjD,OAAO,MAAMC,UAAU,GAAG,qBAAqB,CAAA;AAC/C,OAAO,MAAMC,mBAAmB,GAAG,8BAA8B,CAAA;AACjE,OAAO,MAAMC,KAAK,GAAG,gBAAgB,CAAA;AACrC,OAAO,MAAMC,IAAI,GAAG,eAAe,CAAA;AACnC,OAAO,MAAMC,QAAQ,GAAG,mBAAmB,CAAA"}
|
||||
9
frontend/node_modules/dnd-core/dist/actions/registry.d.ts
generated
vendored
9
frontend/node_modules/dnd-core/dist/actions/registry.d.ts
generated
vendored
@@ -1,9 +0,0 @@
|
||||
import type { Action, SourceIdPayload, TargetIdPayload } from '../interfaces.js';
|
||||
export declare const ADD_SOURCE = "dnd-core/ADD_SOURCE";
|
||||
export declare const ADD_TARGET = "dnd-core/ADD_TARGET";
|
||||
export declare const REMOVE_SOURCE = "dnd-core/REMOVE_SOURCE";
|
||||
export declare const REMOVE_TARGET = "dnd-core/REMOVE_TARGET";
|
||||
export declare function addSource(sourceId: string): Action<SourceIdPayload>;
|
||||
export declare function addTarget(targetId: string): Action<TargetIdPayload>;
|
||||
export declare function removeSource(sourceId: string): Action<SourceIdPayload>;
|
||||
export declare function removeTarget(targetId: string): Action<TargetIdPayload>;
|
||||
38
frontend/node_modules/dnd-core/dist/actions/registry.js
generated
vendored
38
frontend/node_modules/dnd-core/dist/actions/registry.js
generated
vendored
@@ -1,38 +0,0 @@
|
||||
export const ADD_SOURCE = 'dnd-core/ADD_SOURCE';
|
||||
export const ADD_TARGET = 'dnd-core/ADD_TARGET';
|
||||
export const REMOVE_SOURCE = 'dnd-core/REMOVE_SOURCE';
|
||||
export const REMOVE_TARGET = 'dnd-core/REMOVE_TARGET';
|
||||
export function addSource(sourceId) {
|
||||
return {
|
||||
type: ADD_SOURCE,
|
||||
payload: {
|
||||
sourceId
|
||||
}
|
||||
};
|
||||
}
|
||||
export function addTarget(targetId) {
|
||||
return {
|
||||
type: ADD_TARGET,
|
||||
payload: {
|
||||
targetId
|
||||
}
|
||||
};
|
||||
}
|
||||
export function removeSource(sourceId) {
|
||||
return {
|
||||
type: REMOVE_SOURCE,
|
||||
payload: {
|
||||
sourceId
|
||||
}
|
||||
};
|
||||
}
|
||||
export function removeTarget(targetId) {
|
||||
return {
|
||||
type: REMOVE_TARGET,
|
||||
payload: {
|
||||
targetId
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
//# sourceMappingURL=registry.js.map
|
||||
1
frontend/node_modules/dnd-core/dist/actions/registry.js.map
generated
vendored
1
frontend/node_modules/dnd-core/dist/actions/registry.js.map
generated
vendored
@@ -1 +0,0 @@
|
||||
{"version":3,"sources":["../../src/actions/registry.ts"],"sourcesContent":["import type { Action, SourceIdPayload, TargetIdPayload } from '../interfaces.js'\n\nexport const ADD_SOURCE = 'dnd-core/ADD_SOURCE'\nexport const ADD_TARGET = 'dnd-core/ADD_TARGET'\nexport const REMOVE_SOURCE = 'dnd-core/REMOVE_SOURCE'\nexport const REMOVE_TARGET = 'dnd-core/REMOVE_TARGET'\n\nexport function addSource(sourceId: string): Action<SourceIdPayload> {\n\treturn {\n\t\ttype: ADD_SOURCE,\n\t\tpayload: {\n\t\t\tsourceId,\n\t\t},\n\t}\n}\n\nexport function addTarget(targetId: string): Action<TargetIdPayload> {\n\treturn {\n\t\ttype: ADD_TARGET,\n\t\tpayload: {\n\t\t\ttargetId,\n\t\t},\n\t}\n}\n\nexport function removeSource(sourceId: string): Action<SourceIdPayload> {\n\treturn {\n\t\ttype: REMOVE_SOURCE,\n\t\tpayload: {\n\t\t\tsourceId,\n\t\t},\n\t}\n}\n\nexport function removeTarget(targetId: string): Action<TargetIdPayload> {\n\treturn {\n\t\ttype: REMOVE_TARGET,\n\t\tpayload: {\n\t\t\ttargetId,\n\t\t},\n\t}\n}\n"],"names":["ADD_SOURCE","ADD_TARGET","REMOVE_SOURCE","REMOVE_TARGET","addSource","sourceId","type","payload","addTarget","targetId","removeSource","removeTarget"],"mappings":"AAEA,OAAO,MAAMA,UAAU,GAAG,qBAAqB,CAAA;AAC/C,OAAO,MAAMC,UAAU,GAAG,qBAAqB,CAAA;AAC/C,OAAO,MAAMC,aAAa,GAAG,wBAAwB,CAAA;AACrD,OAAO,MAAMC,aAAa,GAAG,wBAAwB,CAAA;AAErD,OAAO,SAASC,SAAS,CAACC,QAAgB,EAA2B;IACpE,OAAO;QACNC,IAAI,EAAEN,UAAU;QAChBO,OAAO,EAAE;YACRF,QAAQ;SACR;KACD,CAAA;CACD;AAED,OAAO,SAASG,SAAS,CAACC,QAAgB,EAA2B;IACpE,OAAO;QACNH,IAAI,EAAEL,UAAU;QAChBM,OAAO,EAAE;YACRE,QAAQ;SACR;KACD,CAAA;CACD;AAED,OAAO,SAASC,YAAY,CAACL,QAAgB,EAA2B;IACvE,OAAO;QACNC,IAAI,EAAEJ,aAAa;QACnBK,OAAO,EAAE;YACRF,QAAQ;SACR;KACD,CAAA;CACD;AAED,OAAO,SAASM,YAAY,CAACF,QAAgB,EAA2B;IACvE,OAAO;QACNH,IAAI,EAAEH,aAAa;QACnBI,OAAO,EAAE;YACRE,QAAQ;SACR;KACD,CAAA;CACD"}
|
||||
Reference in New Issue
Block a user