Add yet-another-react-lightbox package and update .gitignore to exclude node_modules
This commit is contained in:
27
frontend/node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js
generated
vendored
27
frontend/node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js
generated
vendored
@@ -1,27 +0,0 @@
|
||||
import { NativeDragSource } from './NativeDragSource.js';
|
||||
import { nativeTypesConfig } from './nativeTypesConfig.js';
|
||||
export function createNativeDragSource(type, dataTransfer) {
|
||||
const config = nativeTypesConfig[type];
|
||||
if (!config) {
|
||||
throw new Error(`native type ${type} has no configuration`);
|
||||
}
|
||||
const result = new NativeDragSource(config);
|
||||
result.loadDataTransfer(dataTransfer);
|
||||
return result;
|
||||
}
|
||||
export function matchNativeItemType(dataTransfer) {
|
||||
if (!dataTransfer) {
|
||||
return null;
|
||||
}
|
||||
const dataTransferTypes = Array.prototype.slice.call(dataTransfer.types || []);
|
||||
return Object.keys(nativeTypesConfig).filter((nativeItemType)=>{
|
||||
const typeConfig = nativeTypesConfig[nativeItemType];
|
||||
if (!(typeConfig === null || typeConfig === void 0 ? void 0 : typeConfig.matchesTypes)) {
|
||||
return false;
|
||||
}
|
||||
return typeConfig.matchesTypes.some((t)=>dataTransferTypes.indexOf(t) > -1
|
||||
);
|
||||
})[0] || null;
|
||||
}
|
||||
|
||||
//# sourceMappingURL=index.js.map
|
||||
Reference in New Issue
Block a user