packages feed

atlassian-connect-descriptor 0.4.9.0 → 0.4.10.0

raw patch · 3 files changed

+9/−7 lines, 3 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

+ Data.Connect.Descriptor: [jicContentPresentConditions] :: JIRAIssueContent -> [Condition]
- Data.Connect.Descriptor: JIRAIssueContent :: Text -> I18nText -> I18nText -> IconDetails -> JIRAIssueContentTarget -> [Condition] -> JIRAIssueContent
+ Data.Connect.Descriptor: JIRAIssueContent :: Text -> I18nText -> I18nText -> IconDetails -> JIRAIssueContentTarget -> [Condition] -> [Condition] -> JIRAIssueContent

Files

atlassian-connect-descriptor.cabal view
@@ -10,7 +10,7 @@ -- PVP summary:      +-+------- breaking API changes --                   | | +----- non-breaking API additions --                   | | | +--- code changes with no API change-version:             0.4.9.0+version:             0.4.10.0  -- A short (one-line) description of the package. synopsis:            Code that helps you create a valid Atlassian Connect Descriptor.
src/Data/Connect/Modules.hs view
@@ -419,12 +419,13 @@ -- | This module adds a content button to the context area of the new Jira issue view. -- Content can have an icon, tooltip, and target. data JIRAIssueContent = JIRAIssueContent-   { jicKey             :: T.Text -- ^ The add-on unique key for this module.-   , jicName            :: I18nText -- ^ The name of this JIRA Issue Content.-   , jicTooltip         :: I18nText -- ^ The tooltip for this JIRA Issue Content.-   , jicIcon            :: IconDetails -- ^ The icon for this JIRA Issue Content.-   , jicTarget          :: JIRAIssueContentTarget -- ^ Specifies the target action when clicking on the content.-   , jicConditions      :: [Condition] -- ^ The conditions under which the content will be shown.+   { jicKey                      :: T.Text -- ^ The add-on unique key for this module.+   , jicName                     :: I18nText -- ^ The name of this JIRA Issue Content.+   , jicTooltip                  :: I18nText -- ^ The tooltip for this JIRA Issue Content.+   , jicIcon                     :: IconDetails -- ^ The icon for this JIRA Issue Content.+   , jicTarget                   :: JIRAIssueContentTarget -- ^ Specifies the target action when clicking on the content.+   , jicConditions               :: [Condition] -- ^ The conditions under which the content could be shown.+   , jicContentPresentConditions :: [Condition] -- ^ The conditions under which the content will always be shown.    } deriving (Show, Generic)  instance ToJSON JIRAIssueContent where
tests/ModulesTest.hs view
@@ -57,6 +57,7 @@                     }                 , jicTarget = JIRAIssueContentTargetWebPanel "/panel_url"                 , jicConditions = []+                , jicContentPresentConditions = []                 }     let jv = toJSON jic     isObject jv @? "Expected the issue glance to be an object"