UNPKG

1.55 kBJavaScriptView Raw
1"use strict";
2
3require("core-js/modules/es.array.slice.js");
4
5require("core-js/modules/es.object.freeze.js");
6
7Object.defineProperty(exports, "__esModule", {
8 value: true
9});
10exports.LinkTo = LinkTo;
11Object.defineProperty(exports, "hrefTo", {
12 enumerable: true,
13 get: function get() {
14 return _utils.hrefTo;
15 }
16});
17Object.defineProperty(exports, "linkTo", {
18 enumerable: true,
19 get: function get() {
20 return _utils.linkTo;
21 }
22});
23Object.defineProperty(exports, "navigate", {
24 enumerable: true,
25 get: function get() {
26 return _utils.navigate;
27 }
28});
29Object.defineProperty(exports, "withLinks", {
30 enumerable: true,
31 get: function get() {
32 return _utils.withLinks;
33 }
34});
35
36var _tsDedent = _interopRequireDefault(require("ts-dedent"));
37
38var _utils = require("./utils");
39
40var _templateObject;
41
42function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
43
44function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
45
46var hasWarned = false;
47
48function LinkTo() {
49 if (!hasWarned) {
50 // eslint-disable-next-line no-console
51 console.error((0, _tsDedent.default)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n LinkTo has moved to addon-links/react:\n import LinkTo from '@storybook/addon-links/react';\n "]))));
52 hasWarned = true;
53 }
54
55 return null;
56}
57
58if (module && module.hot && module.hot.decline) {
59 module.hot.decline();
60}
\No newline at end of file