adf-builder
Advanced tools
Comparing version 2.0.1 to 3.0.0
# Change Log | ||
## 3.0.0 | ||
* Add `action` mark | ||
* Breaking: Change the name of the `app` attribute of actions in application cards to `receiver`. | ||
## 2.0.1 | ||
* Add actions to `applicationCard`. | ||
## 1.2.0 | ||
@@ -4,0 +13,0 @@ |
@@ -0,1 +1,2 @@ | ||
import { ActionTarget } from './action'; | ||
export declare function marks(): Marks; | ||
@@ -12,2 +13,3 @@ export declare class Marks { | ||
underline(): this; | ||
action(title: string, target: ActionTarget): this; | ||
toJSON(): { | ||
@@ -14,0 +16,0 @@ type: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const action_1 = require("./action"); | ||
const code_1 = require("./code"); | ||
@@ -42,2 +43,5 @@ const em_1 = require("./em"); | ||
} | ||
action(title, target) { | ||
return this.add(new action_1.Action(title, target)); | ||
} | ||
toJSON() { | ||
@@ -44,0 +48,0 @@ if (this.marks.length === 0) { |
@@ -21,3 +21,3 @@ import { TopLevelNode, Typed } from './index'; | ||
export interface ActionTarget { | ||
app?: string; | ||
receiver?: string; | ||
key: string; | ||
@@ -24,0 +24,0 @@ } |
{ | ||
"name": "adf-builder", | ||
"version": "2.0.1", | ||
"version": "3.0.0", | ||
"description": "Atlassian Document Format Builder", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
75048
100
1425