@atlaskit/link-provider
Advanced tools
Comparing version 0.1.2 to 0.1.3
# @atlaskit/link-provider | ||
## 0.1.3 | ||
### Patch Changes | ||
- [`8b9f08cbc1c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8b9f08cbc1c) - [ux] Default representation for Slack links was changed from 'block' to 'inline' | ||
## 0.1.2 | ||
@@ -4,0 +10,0 @@ |
@@ -26,6 +26,2 @@ "use strict"; | ||
var isSlackMessage = function isSlackMessage(url) { | ||
return url.match(/^https:\/\/.+?\.slack\.com\/archives\/[CG][A-Z0-9]+\/p[0-9]+(\?.*)?$/); | ||
}; | ||
var Transformer = /*#__PURE__*/function () { | ||
@@ -72,4 +68,2 @@ function Transformer() { | ||
return this.buildEmbedAdf(url); | ||
} else if (isSlackMessage(url)) { | ||
return this.buildBlockAdf(url); | ||
} else { | ||
@@ -76,0 +70,0 @@ switch (appearance) { |
{ | ||
"name": "@atlaskit/link-provider", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"sideEffects": false | ||
} |
@@ -7,4 +7,2 @@ const isJiraRoadMap = url => url.match(/^https:\/\/.*?\/jira\/software\/(c\/)?projects\/[^\/]+?\/boards\/.*?\/roadmap\/?/); | ||
const isSlackMessage = url => url.match(/^https:\/\/.+?\.slack\.com\/archives\/[CG][A-Z0-9]+\/p[0-9]+(\?.*)?$/); | ||
export class Transformer { | ||
@@ -42,4 +40,2 @@ buildInlineAdf(url) { | ||
return this.buildEmbedAdf(url); | ||
} else if (isSlackMessage(url)) { | ||
return this.buildBlockAdf(url); | ||
} else { | ||
@@ -46,0 +42,0 @@ switch (appearance) { |
{ | ||
"name": "@atlaskit/link-provider", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"sideEffects": false | ||
} |
@@ -16,6 +16,2 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
var isSlackMessage = function isSlackMessage(url) { | ||
return url.match(/^https:\/\/.+?\.slack\.com\/archives\/[CG][A-Z0-9]+\/p[0-9]+(\?.*)?$/); | ||
}; | ||
export var Transformer = /*#__PURE__*/function () { | ||
@@ -62,4 +58,2 @@ function Transformer() { | ||
return this.buildEmbedAdf(url); | ||
} else if (isSlackMessage(url)) { | ||
return this.buildBlockAdf(url); | ||
} else { | ||
@@ -66,0 +60,0 @@ switch (appearance) { |
{ | ||
"name": "@atlaskit/link-provider", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"sideEffects": false | ||
} |
{ | ||
"name": "@atlaskit/link-provider", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Contains provider with react context for anything link related and the link http client", | ||
@@ -5,0 +5,0 @@ "author": "Atlassian Pty Ltd", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
122449
2814