@storybook/addon-docs 6.5.0-alpha.56 → 6.5.0-alpha.57

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.
@@ -137,7 +137,7 @@ var AnchorMdx = function AnchorMdx(props) {
137
137
  } // Links to other pages of SB should use the base URL of the top level iframe instead of the base URL of the preview iframe.
138
138
 
139
139
 
140
- if (target !== '_blank') {
140
+ if (target !== '_blank' && !href.startsWith('https://')) {
141
141
  return /*#__PURE__*/_react.default.createElement(A, _extends({
142
142
  href: href,
143
143
  onClick: function onClick(event) {
@@ -105,7 +105,7 @@ export var AnchorMdx = function AnchorMdx(props) {
105
105
  } // Links to other pages of SB should use the base URL of the top level iframe instead of the base URL of the preview iframe.
106
106
 
107
107
 
108
- if (target !== '_blank') {
108
+ if (target !== '_blank' && !href.startsWith('https://')) {
109
109
  return /*#__PURE__*/React.createElement(A, _extends({
110
110
  href: href,
111
111
  onClick: function onClick(event) {
@@ -100,7 +100,7 @@ export const AnchorMdx = props => {
100
100
  } // Links to other pages of SB should use the base URL of the top level iframe instead of the base URL of the preview iframe.
101
101
 
102
102
 
103
- if (target !== '_blank') {
103
+ if (target !== '_blank' && !href.startsWith('https://')) {
104
104
  return /*#__PURE__*/React.createElement(A, _extends({
105
105
  href: href,
106
106
  onClick: event => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/addon-docs",
3
- "version": "6.5.0-alpha.56",
3
+ "version": "6.5.0-alpha.57",
4
4
  "description": "Document component usage and properties in Markdown",
5
5
  "keywords": [
6
6
  "addon",
@@ -59,20 +59,20 @@
59
59
  "@babel/preset-env": "^7.12.11",
60
60
  "@jest/transform": "^26.6.2",
61
61
  "@mdx-js/react": "^1.6.22",
62
- "@storybook/addons": "6.5.0-alpha.56",
63
- "@storybook/api": "6.5.0-alpha.56",
64
- "@storybook/components": "6.5.0-alpha.56",
65
- "@storybook/core-common": "6.5.0-alpha.56",
66
- "@storybook/core-events": "6.5.0-alpha.56",
62
+ "@storybook/addons": "6.5.0-alpha.57",
63
+ "@storybook/api": "6.5.0-alpha.57",
64
+ "@storybook/components": "6.5.0-alpha.57",
65
+ "@storybook/core-common": "6.5.0-alpha.57",
66
+ "@storybook/core-events": "6.5.0-alpha.57",
67
67
  "@storybook/csf": "0.0.2--canary.7c6c115.0",
68
- "@storybook/docs-tools": "6.5.0-alpha.56",
68
+ "@storybook/docs-tools": "6.5.0-alpha.57",
69
69
  "@storybook/mdx1-csf": "canary",
70
- "@storybook/node-logger": "6.5.0-alpha.56",
71
- "@storybook/postinstall": "6.5.0-alpha.56",
72
- "@storybook/preview-web": "6.5.0-alpha.56",
73
- "@storybook/source-loader": "6.5.0-alpha.56",
74
- "@storybook/store": "6.5.0-alpha.56",
75
- "@storybook/theming": "6.5.0-alpha.56",
70
+ "@storybook/node-logger": "6.5.0-alpha.57",
71
+ "@storybook/postinstall": "6.5.0-alpha.57",
72
+ "@storybook/preview-web": "6.5.0-alpha.57",
73
+ "@storybook/source-loader": "6.5.0-alpha.57",
74
+ "@storybook/store": "6.5.0-alpha.57",
75
+ "@storybook/theming": "6.5.0-alpha.57",
76
76
  "babel-loader": "^8.0.0",
77
77
  "core-js": "^3.8.2",
78
78
  "fast-deep-equal": "^3.1.3",
@@ -108,7 +108,7 @@
108
108
  "publishConfig": {
109
109
  "access": "public"
110
110
  },
111
- "gitHead": "61e4093b46a23f03dfb67e46601e1297d5d55190",
111
+ "gitHead": "896ac6a6110669efbb754ed62ed211274c0d3547",
112
112
  "sbmodern": "dist/modern/index.js",
113
113
  "storybook": {
114
114
  "displayName": "Docs",