diff --git a/packages/react-dnd/src/DragLayer.tsx b/packages/react-dnd/src/DragLayer.tsx index 1f89223b41..217404df71 100644 --- a/packages/react-dnd/src/DragLayer.tsx +++ b/packages/react-dnd/src/DragLayer.tsx @@ -23,13 +23,13 @@ export default function DragLayer( invariant( typeof collect === 'function', 'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ', - 'Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html', + 'Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer', collect, ) invariant( isPlainObject(options), 'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. ' + - 'Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs-drag-layer.html', + 'Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer', options, ) @@ -116,7 +116,7 @@ export default function DragLayer( typeof dragDropManager === 'object', 'Could not find the drag and drop manager in the context of %s. ' + 'Make sure to wrap the top-level component of your app with DragDropContext. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context', + 'Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context', displayName, displayName, ) diff --git a/packages/react-dnd/src/DragSource.ts b/packages/react-dnd/src/DragSource.ts index 53e0597488..693e1c071d 100644 --- a/packages/react-dnd/src/DragSource.ts +++ b/packages/react-dnd/src/DragSource.ts @@ -47,7 +47,7 @@ export default function DragSource< 'Expected "type" provided as the first argument to DragSource to be ' + 'a string, or a function that returns a string given the current props. ' + 'Instead, received %s. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html', + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', type, ) getType = () => type @@ -56,7 +56,7 @@ export default function DragSource< isPlainObject(spec), 'Expected "spec" provided as the second argument to DragSource to be ' + 'a plain object. Instead, received %s. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html', + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', spec, ) const createSource = createSourceFactory(spec) @@ -65,7 +65,7 @@ export default function DragSource< 'Expected "collect" provided as the third argument to DragSource to be ' + 'a function that returns a plain object of props to inject. ' + 'Instead, received %s. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html', + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', collect, ) invariant( @@ -73,7 +73,7 @@ export default function DragSource< 'Expected "options" provided as the fourth argument to DragSource to be ' + 'a plain object when specified. ' + 'Instead, received %s. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html', + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', collect, ) diff --git a/packages/react-dnd/src/DragSourceMonitorImpl.ts b/packages/react-dnd/src/DragSourceMonitorImpl.ts index a3200c5e85..a782ea7861 100644 --- a/packages/react-dnd/src/DragSourceMonitorImpl.ts +++ b/packages/react-dnd/src/DragSourceMonitorImpl.ts @@ -33,7 +33,7 @@ export default class DragSourceMonitorImpl implements DragSourceMonitor { invariant( !isCallingCanDrag, 'You may not call monitor.canDrag() inside your canDrag() implementation. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html', + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor', ) try { @@ -48,7 +48,7 @@ export default class DragSourceMonitorImpl implements DragSourceMonitor { invariant( !isCallingIsDragging, 'You may not call monitor.isDragging() inside your isDragging() implementation. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html', + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor', ) try { diff --git a/packages/react-dnd/src/DropTarget.ts b/packages/react-dnd/src/DropTarget.ts index 0a45225437..619830fef3 100644 --- a/packages/react-dnd/src/DropTarget.ts +++ b/packages/react-dnd/src/DropTarget.ts @@ -41,7 +41,7 @@ export default function DropTarget( 'Expected "type" provided as the first argument to DropTarget to be ' + 'a string, an array of strings, or a function that returns either given ' + 'the current props. Instead, received %s. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html', + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', type, ) getType = () => type @@ -50,7 +50,7 @@ export default function DropTarget( isPlainObject(spec), 'Expected "spec" provided as the second argument to DropTarget to be ' + 'a plain object. Instead, received %s. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html', + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', spec, ) const createTarget = createTargetFactory(spec) @@ -59,7 +59,7 @@ export default function DropTarget( 'Expected "collect" provided as the third argument to DropTarget to be ' + 'a function that returns a plain object of props to inject. ' + 'Instead, received %s. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html', + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', collect, ) invariant( @@ -67,7 +67,7 @@ export default function DropTarget( 'Expected "options" provided as the fourth argument to DropTarget to be ' + 'a plain object when specified. ' + 'Instead, received %s. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html', + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', collect, ) diff --git a/packages/react-dnd/src/DropTargetMonitorImpl.ts b/packages/react-dnd/src/DropTargetMonitorImpl.ts index ec2b133721..441c5ffddc 100644 --- a/packages/react-dnd/src/DropTargetMonitorImpl.ts +++ b/packages/react-dnd/src/DropTargetMonitorImpl.ts @@ -38,7 +38,7 @@ export default class DropTargetMonitorImpl implements DropTargetMonitor { invariant( !isCallingCanDrop, 'You may not call monitor.canDrop() inside your canDrop() implementation. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-drop-target-monitor.html', + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor', ) try { diff --git a/packages/react-dnd/src/createSourceFactory.ts b/packages/react-dnd/src/createSourceFactory.ts index 9ff0399e0a..f4f1af7245 100644 --- a/packages/react-dnd/src/createSourceFactory.ts +++ b/packages/react-dnd/src/createSourceFactory.ts @@ -61,7 +61,7 @@ class SourceImpl implements Source { isPlainObject(item), 'beginDrag() must return a plain object that represents the dragged item. ' + 'Instead received %s. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html', + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', item, ) } @@ -89,7 +89,7 @@ export default function createSourceFactory( 'Expected the drag source specification to only have ' + 'some of the following keys: %s. ' + 'Instead received a specification with an unexpected "%s" key. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html', + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', ALLOWED_SPEC_METHODS.join(', '), key, ) @@ -97,7 +97,7 @@ export default function createSourceFactory( typeof (spec as any)[key] === 'function', 'Expected %s in the drag source specification to be a function. ' + 'Instead received a specification with %s: %s. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html', + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', key, key, (spec as any)[key], @@ -108,7 +108,7 @@ export default function createSourceFactory( typeof (spec as any)[key] === 'function', 'Expected %s in the drag source specification to be a function. ' + 'Instead received a specification with %s: %s. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-drag-source.html', + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source', key, key, (spec as any)[key], diff --git a/packages/react-dnd/src/createTargetFactory.ts b/packages/react-dnd/src/createTargetFactory.ts index a191a54012..f62b5093b3 100644 --- a/packages/react-dnd/src/createTargetFactory.ts +++ b/packages/react-dnd/src/createTargetFactory.ts @@ -63,7 +63,7 @@ class TargetImpl implements Target { typeof dropResult === 'undefined' || isPlainObject(dropResult), 'drop() must either return undefined, or an object that represents the drop result. ' + 'Instead received %s. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html', + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', dropResult, ) } @@ -80,7 +80,7 @@ export default function createTargetFactory( 'Expected the drop target specification to only have ' + 'some of the following keys: %s. ' + 'Instead received a specification with an unexpected "%s" key. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html', + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', ALLOWED_SPEC_METHODS.join(', '), key, ) @@ -88,7 +88,7 @@ export default function createTargetFactory( typeof (spec as any)[key] === 'function', 'Expected %s in the drop target specification to be a function. ' + 'Instead received a specification with %s: %s. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-drop-target.html', + 'Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target', key, key, (spec as any)[key], diff --git a/packages/react-dnd/src/decorateHandler.tsx b/packages/react-dnd/src/decorateHandler.tsx index 40c51b2c4e..b4fb8b8148 100644 --- a/packages/react-dnd/src/decorateHandler.tsx +++ b/packages/react-dnd/src/decorateHandler.tsx @@ -227,7 +227,7 @@ export default function decorateHandler({ dragDropManager !== undefined, 'Could not find the drag and drop manager in the context of %s. ' + 'Make sure to wrap the top-level component of your app with DragDropContext. ' + - 'Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#could-not-find-the-drag-and-drop-manager-in-the-context', + 'Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context', displayName, displayName, ) diff --git a/packages/react-dnd/src/utils/checkDecoratorArguments.ts b/packages/react-dnd/src/utils/checkDecoratorArguments.ts index 18689c85d3..758133d885 100644 --- a/packages/react-dnd/src/utils/checkDecoratorArguments.ts +++ b/packages/react-dnd/src/utils/checkDecoratorArguments.ts @@ -12,7 +12,7 @@ export default function checkDecoratorArguments( console.error( 'You seem to be applying the arguments in the wrong order. ' + `It should be ${functionName}(${signature})(Component), not the other way around. ` + - 'Read more: http://react-dnd.github.io/react-dnd/docs-troubleshooting.html#you-seem-to-be-applying-the-arguments-in-the-wrong-order', + 'Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#you-seem-to-be-applying-the-arguments-in-the-wrong-order', ) return }