@atlaskit/adf-schema
Advanced tools
Comparing version 2.2.0 to 2.2.1
# @atlaskit/adf-schema | ||
## 2.2.1 | ||
- [patch] [3f8a08fc88](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3f8a08fc88): | ||
Release a new version of adf-schema | ||
## 2.2.0 | ||
@@ -4,0 +9,0 @@ - [minor] [63133d8704](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/63133d8704): |
@@ -16,2 +16,3 @@ import { NodeSpec } from 'prosemirror-model'; | ||
} | ||
export declare const decisionListSelector: string; | ||
export declare const decisionList: NodeSpec; |
import { uuid } from '../../utils/uuid'; | ||
var name = 'decisionList'; | ||
export var decisionListSelector = "[data-node-type=\"" + name + "\"]"; | ||
export var decisionList = { | ||
@@ -11,3 +13,3 @@ group: 'block', | ||
{ | ||
tag: 'ol[data-decision-list-local-id]', | ||
tag: "ol" + decisionListSelector, | ||
// Default priority is 50. We normally don't change this but since this node type is | ||
@@ -24,2 +26,3 @@ // also used by ordered-list we need to make sure that we run this parser first. | ||
var attrs = { | ||
'data-node-type': name, | ||
'data-decision-list-local-id': localId || 'local-decision-list', | ||
@@ -26,0 +29,0 @@ style: 'list-style: none; padding-left: 0', |
@@ -25,5 +25,5 @@ export { confluenceJiraIssue } from './confluence-jira-issue'; | ||
export { applicationCard, ApplicationCardAttributes, AppCardAction, ApplicationCardDefinition, } from './applicationCard'; | ||
export { decisionList, DecisionListDefinition } from './decision-list'; | ||
export { decisionList, DecisionListDefinition, decisionListSelector, } from './decision-list'; | ||
export { decisionItem, DecisionItemDefinition } from './decision-item'; | ||
export { taskList, TaskListDefinition } from './task-list'; | ||
export { taskList, TaskListDefinition, taskListSelector } from './task-list'; | ||
export { taskItem, TaskItemDefinition } from './task-item'; | ||
@@ -30,0 +30,0 @@ export { extension, ExtensionDefinition } from './extension'; |
@@ -25,5 +25,5 @@ export { confluenceJiraIssue } from './confluence-jira-issue'; | ||
export { applicationCard, } from './applicationCard'; | ||
export { decisionList } from './decision-list'; | ||
export { decisionList, decisionListSelector, } from './decision-list'; | ||
export { decisionItem } from './decision-item'; | ||
export { taskList } from './task-list'; | ||
export { taskList, taskListSelector } from './task-list'; | ||
export { taskItem } from './task-item'; | ||
@@ -30,0 +30,0 @@ export { extension } from './extension'; |
@@ -16,2 +16,3 @@ import { NodeSpec } from 'prosemirror-model'; | ||
} | ||
export declare const taskListSelector: string; | ||
export declare const taskList: NodeSpec; |
import { uuid } from '../../utils/uuid'; | ||
var name = 'actionList'; | ||
export var taskListSelector = "[data-node-type=\"" + name + "\"]"; | ||
export var taskList = { | ||
@@ -11,3 +13,3 @@ group: 'block', | ||
{ | ||
tag: 'ol[data-task-list-local-id]', | ||
tag: "ol" + taskListSelector, | ||
// Default priority is 50. We normaly don't change this but since this node type is | ||
@@ -24,2 +26,3 @@ // also used by ordered-list we need to make sure that we run this parser first. | ||
var attrs = { | ||
'data-node-type': name, | ||
'data-task-list-local-id': localId || 'local-task-list', | ||
@@ -26,0 +29,0 @@ style: 'list-style: none; padding-left: 0', |
@@ -16,2 +16,3 @@ import { NodeSpec } from 'prosemirror-model'; | ||
} | ||
export declare const decisionListSelector: string; | ||
export declare const decisionList: NodeSpec; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var uuid_1 = require("../../utils/uuid"); | ||
var name = 'decisionList'; | ||
exports.decisionListSelector = "[data-node-type=\"" + name + "\"]"; | ||
exports.decisionList = { | ||
@@ -13,3 +15,3 @@ group: 'block', | ||
{ | ||
tag: 'ol[data-decision-list-local-id]', | ||
tag: "ol" + exports.decisionListSelector, | ||
// Default priority is 50. We normally don't change this but since this node type is | ||
@@ -26,2 +28,3 @@ // also used by ordered-list we need to make sure that we run this parser first. | ||
var attrs = { | ||
'data-node-type': name, | ||
'data-decision-list-local-id': localId || 'local-decision-list', | ||
@@ -28,0 +31,0 @@ style: 'list-style: none; padding-left: 0', |
@@ -25,5 +25,5 @@ export { confluenceJiraIssue } from './confluence-jira-issue'; | ||
export { applicationCard, ApplicationCardAttributes, AppCardAction, ApplicationCardDefinition, } from './applicationCard'; | ||
export { decisionList, DecisionListDefinition } from './decision-list'; | ||
export { decisionList, DecisionListDefinition, decisionListSelector, } from './decision-list'; | ||
export { decisionItem, DecisionItemDefinition } from './decision-item'; | ||
export { taskList, TaskListDefinition } from './task-list'; | ||
export { taskList, TaskListDefinition, taskListSelector } from './task-list'; | ||
export { taskItem, TaskItemDefinition } from './task-item'; | ||
@@ -30,0 +30,0 @@ export { extension, ExtensionDefinition } from './extension'; |
@@ -69,2 +69,3 @@ "use strict"; | ||
exports.decisionList = decision_list_1.decisionList; | ||
exports.decisionListSelector = decision_list_1.decisionListSelector; | ||
var decision_item_1 = require("./decision-item"); | ||
@@ -74,2 +75,3 @@ exports.decisionItem = decision_item_1.decisionItem; | ||
exports.taskList = task_list_1.taskList; | ||
exports.taskListSelector = task_list_1.taskListSelector; | ||
var task_item_1 = require("./task-item"); | ||
@@ -76,0 +78,0 @@ exports.taskItem = task_item_1.taskItem; |
@@ -16,2 +16,3 @@ import { NodeSpec } from 'prosemirror-model'; | ||
} | ||
export declare const taskListSelector: string; | ||
export declare const taskList: NodeSpec; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var uuid_1 = require("../../utils/uuid"); | ||
var name = 'actionList'; | ||
exports.taskListSelector = "[data-node-type=\"" + name + "\"]"; | ||
exports.taskList = { | ||
@@ -13,3 +15,3 @@ group: 'block', | ||
{ | ||
tag: 'ol[data-task-list-local-id]', | ||
tag: "ol" + exports.taskListSelector, | ||
// Default priority is 50. We normaly don't change this but since this node type is | ||
@@ -26,2 +28,3 @@ // also used by ordered-list we need to make sure that we run this parser first. | ||
var attrs = { | ||
'data-node-type': name, | ||
'data-task-list-local-id': localId || 'local-task-list', | ||
@@ -28,0 +31,0 @@ style: 'list-style: none; padding-left: 0', |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"sideEffects": false | ||
} |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"sideEffects": false | ||
} |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -78,3 +78,3 @@ import { | ||
export class RefsTracker { | ||
refs: Refs; | ||
refs?: Refs; | ||
} | ||
@@ -102,3 +102,3 @@ | ||
// Helpers | ||
const isEven = n => n % 2 === 0; | ||
const isEven = (n: number) => n % 2 === 0; | ||
@@ -162,3 +162,3 @@ for (const match of matches(value, /([\\]+)?{(\w+|<|>|<>)}/g)) { | ||
if (isRefsTracker(node)) { | ||
refs = { ...refs, ...offsetRefs(node.refs, position) }; | ||
refs = { ...refs, ...offsetRefs(node.refs!, position) }; | ||
} | ||
@@ -231,5 +231,5 @@ if (isRefsNode(node)) { | ||
export const createCell = (colspan, rowspan) => | ||
export const createCell = (colspan: number, rowspan: number) => | ||
td({ colspan, rowspan })(p('x')); | ||
export const createHeaderCell = (colspan, rowspan) => | ||
export const createHeaderCell = (colspan: number, rowspan: number) => | ||
th({ colspan, rowspan })(p('x')); | ||
@@ -236,0 +236,0 @@ |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"sideEffects": false | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
704901
18547
4
21719