adf-builder
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -9,4 +9,5 @@ import { Mark } from './mark'; | ||
private readonly target; | ||
constructor(title: string, target: ActionTarget); | ||
private readonly actionParameters; | ||
constructor(title: string, target: ActionTarget, actionParameters?: object | undefined); | ||
toJSON(): any; | ||
} |
@@ -5,6 +5,7 @@ "use strict"; | ||
class Action extends mark_1.Mark { | ||
constructor(title, target) { | ||
constructor(title, target, actionParameters) { | ||
super('action'); | ||
this.title = title; | ||
this.target = target; | ||
this.actionParameters = actionParameters; | ||
} | ||
@@ -19,2 +20,5 @@ toJSON() { | ||
}; | ||
if (this.actionParameters) { | ||
actionMark.attrs.parameters = this.actionParameters; | ||
} | ||
return actionMark; | ||
@@ -21,0 +25,0 @@ } |
@@ -13,3 +13,3 @@ import { ActionTarget } from './action'; | ||
underline(): this; | ||
action(title: string, target: ActionTarget): this; | ||
action(title: string, target: ActionTarget, actionParameters?: object): this; | ||
toJSON(): { | ||
@@ -16,0 +16,0 @@ type: string; |
@@ -43,4 +43,4 @@ "use strict"; | ||
} | ||
action(title, target) { | ||
return this.add(new action_1.Action(title, target)); | ||
action(title, target, actionParameters) { | ||
return this.add(new action_1.Action(title, target, actionParameters)); | ||
} | ||
@@ -47,0 +47,0 @@ toJSON() { |
{ | ||
"name": "adf-builder", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Atlassian Document Format Builder", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
75558
1430