@atlaskit/adf-schema 57.5.2 → 57.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/codemods/23.0.0-move-bitbucket-schema-to-own-entry-points.ts +1 -0
- package/codemods/23.0.0-move-confluence-schema-to-own-entry-points.ts +1 -0
- package/codemods/23.0.0-move-default-schema-to-own-entry-points.ts +1 -0
- package/codemods/23.0.0-move-jira-schema-to-own-entry-points.ts +1 -0
- package/dist/cjs/next-schema/full-schema.adf.js +7 -7
- package/dist/cjs/next-schema/groups/inlineContentGroup.js +6 -6
- package/dist/cjs/next-schema/groups/inlineGroup.js +6 -6
- package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/cjs/next-schema/nodes/blockquote.js +4 -4
- package/dist/cjs/next-schema/nodes/bodiedSyncBlock.js +3 -3
- package/dist/cjs/next-schema/nodes/expand.js +1 -1
- package/dist/cjs/next-schema/nodes/panel.js +2 -2
- package/dist/cjs/next-schema/nodes/tableNodes.js +3 -3
- package/dist/cjs/next-schema/nodes/text.js +4 -4
- package/dist/cjs/schema/nodes/decision-item.js +1 -1
- package/dist/cjs/schema/nodes/decision-list.js +1 -1
- package/dist/cjs/schema/nodes/status.js +1 -1
- package/dist/cjs/schema/nodes/task-item.js +1 -1
- package/dist/cjs/steps/analytics.js +1 -1
- package/dist/cjs/steps/batch-attrs-step.js +1 -1
- package/dist/cjs/steps/link-meta-step.js +1 -1
- package/dist/cjs/steps/override-document-step.js +1 -1
- package/dist/cjs/steps/set-attrs.js +2 -2
- package/dist/cjs/steps/type-ahead.js +1 -1
- package/dist/cjs/utils/colors.js +1 -0
- package/dist/es2019/next-schema/full-schema.adf.js +7 -7
- package/dist/es2019/next-schema/groups/inlineContentGroup.js +6 -6
- package/dist/es2019/next-schema/groups/inlineGroup.js +6 -6
- package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/es2019/next-schema/nodes/blockquote.js +4 -4
- package/dist/es2019/next-schema/nodes/bodiedSyncBlock.js +3 -3
- package/dist/es2019/next-schema/nodes/expand.js +1 -1
- package/dist/es2019/next-schema/nodes/panel.js +2 -2
- package/dist/es2019/next-schema/nodes/tableNodes.js +3 -3
- package/dist/es2019/next-schema/nodes/text.js +4 -4
- package/dist/es2019/schema/jira-schema.js +1 -0
- package/dist/es2019/schema/nodes/decision-item.js +1 -1
- package/dist/es2019/schema/nodes/decision-list.js +1 -1
- package/dist/es2019/schema/nodes/status.js +1 -1
- package/dist/es2019/schema/nodes/task-item.js +1 -1
- package/dist/es2019/steps/analytics.js +1 -1
- package/dist/es2019/steps/batch-attrs-step.js +1 -1
- package/dist/es2019/steps/link-meta-step.js +1 -1
- package/dist/es2019/steps/override-document-step.js +1 -1
- package/dist/es2019/steps/set-attrs.js +2 -2
- package/dist/es2019/steps/type-ahead.js +1 -1
- package/dist/es2019/utils/colors.js +1 -0
- package/dist/esm/next-schema/full-schema.adf.js +7 -7
- package/dist/esm/next-schema/groups/inlineContentGroup.js +6 -6
- package/dist/esm/next-schema/groups/inlineGroup.js +6 -6
- package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/esm/next-schema/nodes/blockquote.js +4 -4
- package/dist/esm/next-schema/nodes/bodiedSyncBlock.js +3 -3
- package/dist/esm/next-schema/nodes/expand.js +1 -1
- package/dist/esm/next-schema/nodes/panel.js +2 -2
- package/dist/esm/next-schema/nodes/tableNodes.js +3 -3
- package/dist/esm/next-schema/nodes/text.js +4 -4
- package/dist/esm/schema/jira-schema.js +1 -0
- package/dist/esm/schema/nodes/decision-item.js +1 -1
- package/dist/esm/schema/nodes/decision-list.js +1 -1
- package/dist/esm/schema/nodes/status.js +1 -1
- package/dist/esm/schema/nodes/task-item.js +1 -1
- package/dist/esm/steps/analytics.js +1 -1
- package/dist/esm/steps/batch-attrs-step.js +1 -1
- package/dist/esm/steps/link-meta-step.js +1 -1
- package/dist/esm/steps/override-document-step.js +1 -1
- package/dist/esm/steps/set-attrs.js +2 -2
- package/dist/esm/steps/type-ahead.js +1 -1
- package/dist/esm/utils/colors.js +1 -0
- package/dist/types/schema/nodes/block-card.d.ts +1 -1
- package/dist/types/schema/nodes/blockquote.d.ts +3 -3
- package/dist/types/schema/nodes/bodied-rule.d.ts +1 -1
- package/dist/types/schema/nodes/bodied-sync-block.d.ts +8 -8
- package/dist/types/schema/nodes/caption.d.ts +1 -1
- package/dist/types/schema/nodes/date.d.ts +1 -1
- package/dist/types/schema/nodes/decision-item.d.ts +1 -1
- package/dist/types/schema/nodes/decision-list.d.ts +1 -1
- package/dist/types/schema/nodes/doc.d.ts +6 -6
- package/dist/types/schema/nodes/embed-card.d.ts +1 -1
- package/dist/types/schema/nodes/expand.d.ts +1 -1
- package/dist/types/schema/nodes/heading.d.ts +2 -2
- package/dist/types/schema/nodes/inline-card.d.ts +2 -2
- package/dist/types/schema/nodes/layout-column.d.ts +1 -1
- package/dist/types/schema/nodes/layout-section.d.ts +2 -2
- package/dist/types/schema/nodes/media-group.d.ts +1 -1
- package/dist/types/schema/nodes/multi-bodied-extension.d.ts +1 -1
- package/dist/types/schema/nodes/nested-expand.d.ts +11 -11
- package/dist/types/schema/nodes/panel.d.ts +1 -1
- package/dist/types/schema/nodes/paragraph.d.ts +2 -2
- package/dist/types/schema/nodes/status.d.ts +1 -1
- package/dist/types/schema/nodes/tableNodes.d.ts +1 -1
- package/dist/types/schema/nodes/task-item.d.ts +3 -3
- package/dist/types/schema/nodes/types/block-content.d.ts +12 -12
- package/dist/types/schema/nodes/types/inline-content.d.ts +1 -1
- package/dist/types/schema/nodes/types/list.d.ts +2 -2
- package/dist/types/schema/nodes/types/non-nestable-block-content.d.ts +10 -10
- package/dist/types/steps/analytics.d.ts +1 -1
- package/dist/types/steps/batch-attrs-step.d.ts +1 -1
- package/dist/types/steps/link-meta-step.d.ts +1 -1
- package/dist/types/steps/override-document-step.d.ts +2 -2
- package/dist/types/steps/set-attrs.d.ts +2 -2
- package/dist/types/steps/type-ahead.d.ts +1 -1
- package/package.json +2 -2
- package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +1 -0
- package/schema-generators/__tests__/unit/json-full-schema-backwards-compat.unit.ts +2 -0
- package/schema-generators/helpers/writeToFile.ts +1 -0
- package/schema-generators/json-full-schema.ts +2 -0
- package/schema-generators/pm-full-schema.ts +2 -0
- package/schema-generators/validator-full-schema.ts +2 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { adfNode } from '@atlaskit/adf-schema-generator';
|
|
2
2
|
import { annotation } from '../marks/annotation';
|
|
3
3
|
import { code } from '../marks/code';
|
|
4
|
+
import { backgroundColor, textColor } from '../marks/color';
|
|
5
|
+
import { confluenceInlineComment } from '../marks/confluenceInlineComment';
|
|
4
6
|
import { em } from '../marks/em';
|
|
5
7
|
import { link } from '../marks/link';
|
|
6
8
|
import { strike } from '../marks/strike';
|
|
7
9
|
import { strong } from '../marks/strong';
|
|
8
10
|
import { subsup } from '../marks/subsup';
|
|
11
|
+
import { typeAheadQuery } from '../marks/typeAheadQuery';
|
|
9
12
|
import { underline } from '../marks/underline';
|
|
10
|
-
import { backgroundColor, textColor } from '../marks/color';
|
|
11
|
-
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
12
13
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
|
13
|
-
import {
|
|
14
|
-
import { confluenceInlineComment } from '../marks/confluenceInlineComment';
|
|
14
|
+
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
15
15
|
export const text = adfNode('text').define({
|
|
16
16
|
marks: [],
|
|
17
17
|
hasEmptyMarks: true
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
4
3
|
import { StepResult, StepMap, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
4
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
5
5
|
export const analyticsStepType = 'atlaskit-analytics';
|
|
6
6
|
export const analyticsInvertStepType = 'atlaskit-analytics-invert';
|
|
7
7
|
var HISTORY_ACTIONS = /*#__PURE__*/function (HISTORY_ACTIONS) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// oxlint-disable-next-line import/no-duplicates
|
|
2
2
|
import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
4
3
|
import { StepResult } from '@atlaskit/editor-prosemirror/transform';
|
|
4
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
5
5
|
const stepType = 'batchAttrs';
|
|
6
6
|
const isValidData = data => {
|
|
7
7
|
if (data !== null && !Array.isArray(data)) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
3
2
|
import { ReplaceStep, StepMap, StepResult } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
4
4
|
export const stepType = 'editor-linking-meta';
|
|
5
5
|
export const invertStepType = 'editor-linking-meta-invert';
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
3
2
|
import { StepResult, StepMap } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
4
4
|
export const overrideDocumentStepType = 'override-document';
|
|
5
5
|
export class OverrideDocumentStep extends Step {
|
|
6
6
|
constructor(opts) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
2
|
-
import { StepResult } from '@atlaskit/editor-prosemirror/transform';
|
|
3
1
|
import { Slice, Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { StepResult } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* For more context on what this is about:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
3
2
|
import { ReplaceStep, StepMap, StepResult } from '@atlaskit/editor-prosemirror/transform';
|
|
3
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
4
4
|
export const insertTypeAheadStepType = 'atlaskit-insert-type-ahead';
|
|
5
5
|
export let InsertTypeAheadStages = /*#__PURE__*/function (InsertTypeAheadStages) {
|
|
6
6
|
InsertTypeAheadStages["DELETING_RAW_QUERY"] = "DELETING_RAW_QUERY";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { $or, $onePlus, adfNode } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
import { blockContentGroup } from './groups/blockContentGroup';
|
|
2
3
|
import { blockGroup } from './groups/blockGroup';
|
|
3
|
-
import { layoutSection } from './nodes/layoutSection';
|
|
4
4
|
import { blockRootOnlyGroup } from './groups/blockRootOnlyGroup';
|
|
5
|
-
import { blockContentGroup } from './groups/blockContentGroup';
|
|
6
|
-
import { expand } from './nodes/expand';
|
|
7
|
-
import { codeBlock } from './nodes/codeBlock';
|
|
8
|
-
import { syncBlock } from './nodes/syncBlock';
|
|
9
|
-
import { bodiedSyncBlock } from './nodes/bodiedSyncBlock';
|
|
10
5
|
import { bodiedExtension } from './nodes/bodiedExtension';
|
|
6
|
+
import { bodiedRule } from './nodes/bodiedRule';
|
|
7
|
+
import { bodiedSyncBlock } from './nodes/bodiedSyncBlock';
|
|
8
|
+
import { codeBlock } from './nodes/codeBlock';
|
|
9
|
+
import { expand } from './nodes/expand';
|
|
11
10
|
import { extension } from './nodes/extension';
|
|
11
|
+
import { layoutSection } from './nodes/layoutSection';
|
|
12
12
|
import { multiBodiedExtension } from './nodes/multiBodiedExtension';
|
|
13
13
|
import { panel } from './nodes/panel';
|
|
14
14
|
import { rule } from './nodes/rule';
|
|
15
|
-
import {
|
|
15
|
+
import { syncBlock } from './nodes/syncBlock';
|
|
16
16
|
var doc = adfNode('doc').define({
|
|
17
17
|
root: true,
|
|
18
18
|
version: 1,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { adfNodeGroup } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
import { confluenceJiraIssue } from '../nodes/confluenceJiraIssue';
|
|
3
|
+
import { confluenceUnsupportedInline } from '../nodes/confluenceUnsupportedInline';
|
|
2
4
|
import { date } from '../nodes/date';
|
|
3
5
|
import { emoji } from '../nodes/emoji';
|
|
4
6
|
import { hardBreak } from '../nodes/hardBreak';
|
|
7
|
+
import { image } from '../nodes/image';
|
|
5
8
|
import { inlineCard } from '../nodes/inlineCard';
|
|
9
|
+
import { inlineExtension } from '../nodes/inlineExtension';
|
|
10
|
+
import { mediaInline } from '../nodes/mediaInline';
|
|
6
11
|
import { mention } from '../nodes/mention';
|
|
7
12
|
import { placeholder } from '../nodes/placeholder';
|
|
8
|
-
import { text } from '../nodes/text';
|
|
9
13
|
import { status } from '../nodes/status';
|
|
10
|
-
import {
|
|
11
|
-
import { mediaInline } from '../nodes/mediaInline';
|
|
14
|
+
import { text } from '../nodes/text';
|
|
12
15
|
import { unsupportedInline } from '../nodes/unsupportedInline';
|
|
13
|
-
import { confluenceUnsupportedInline } from '../nodes/confluenceUnsupportedInline';
|
|
14
|
-
import { image } from '../nodes/image';
|
|
15
|
-
import { confluenceJiraIssue } from '../nodes/confluenceJiraIssue';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
// eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { adfNodeGroup } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
import { confluenceJiraIssue } from '../nodes/confluenceJiraIssue';
|
|
3
|
+
import { confluenceUnsupportedInline } from '../nodes/confluenceUnsupportedInline';
|
|
2
4
|
import { date } from '../nodes/date';
|
|
3
5
|
import { emoji } from '../nodes/emoji';
|
|
4
6
|
import { hardBreak } from '../nodes/hardBreak';
|
|
7
|
+
import { image } from '../nodes/image';
|
|
5
8
|
import { inlineCard } from '../nodes/inlineCard';
|
|
9
|
+
import { inlineExtension } from '../nodes/inlineExtension';
|
|
10
|
+
import { mediaInline } from '../nodes/mediaInline';
|
|
6
11
|
import { mention } from '../nodes/mention';
|
|
7
12
|
import { placeholder } from '../nodes/placeholder';
|
|
8
|
-
import { text } from '../nodes/text';
|
|
9
13
|
import { status } from '../nodes/status';
|
|
10
|
-
import {
|
|
11
|
-
import { mediaInline } from '../nodes/mediaInline';
|
|
14
|
+
import { text } from '../nodes/text';
|
|
12
15
|
import { unsupportedInline } from '../nodes/unsupportedInline';
|
|
13
|
-
import { confluenceUnsupportedInline } from '../nodes/confluenceUnsupportedInline';
|
|
14
|
-
import { image } from '../nodes/image';
|
|
15
|
-
import { confluenceJiraIssue } from '../nodes/confluenceJiraIssue';
|
|
16
16
|
export var inlineGroup = adfNodeGroup('inline', [text, text.use('link_inline'), text.use('formatted'), text.use('code_inline'), date, emoji, hardBreak, inlineCard, mention, placeholder, status, inlineExtension, inlineExtension.use('with_marks'), mediaInline, image, confluenceJiraIssue, confluenceUnsupportedInline, unsupportedInline], {
|
|
17
17
|
// @DSLCompatibilityException
|
|
18
18
|
// Inline group in PM doesn't match ADF
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { adfNodeGroup } from '@atlaskit/adf-schema-generator';
|
|
2
2
|
import { blockCard } from '../nodes/blockCard';
|
|
3
|
-
import { bodiedRule } from '../nodes/bodiedRule';
|
|
4
3
|
import { blockquote } from '../nodes/blockquote';
|
|
4
|
+
import { bodiedRule } from '../nodes/bodiedRule';
|
|
5
5
|
import { codeBlock } from '../nodes/codeBlock';
|
|
6
6
|
import { decisionList } from '../nodes/decisionList';
|
|
7
7
|
import { embedCard } from '../nodes/embedCard';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { $onePlus, $or } from '@atlaskit/adf-schema-generator';
|
|
2
2
|
import { blockCard } from '../nodes/blockCard';
|
|
3
|
-
import { bodiedRule } from '../nodes/bodiedRule';
|
|
4
3
|
import { blockquote } from '../nodes/blockquote';
|
|
4
|
+
import { bodiedRule } from '../nodes/bodiedRule';
|
|
5
5
|
import { codeBlock } from '../nodes/codeBlock';
|
|
6
6
|
import { decisionList } from '../nodes/decisionList';
|
|
7
7
|
import { embedCard } from '../nodes/embedCard';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
|
|
2
2
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
|
3
3
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
4
|
-
import { bulletList, orderedList } from './list';
|
|
5
|
-
import { paragraph } from './paragraph';
|
|
6
|
-
import { unsupportedBlock } from './unsupportedBlock';
|
|
7
4
|
import { codeBlock } from './codeBlock';
|
|
5
|
+
import { extension } from './extension';
|
|
6
|
+
import { bulletList, orderedList } from './list';
|
|
8
7
|
import { mediaGroup } from './mediaGroup';
|
|
9
8
|
import { mediaSingle } from './mediaSingle';
|
|
10
|
-
import {
|
|
9
|
+
import { paragraph } from './paragraph';
|
|
10
|
+
import { unsupportedBlock } from './unsupportedBlock';
|
|
11
11
|
var blockQuoteContent = [paragraph.use('with_no_marks'), orderedList, bulletList, unsupportedBlock, codeBlock, mediaSingle.use('caption'), mediaSingle.use('full'), mediaGroup, extension.use('with_marks')];
|
|
12
12
|
export var blockquote = adfNode('blockquote').define({
|
|
13
13
|
defining: true,
|
|
@@ -4,23 +4,23 @@ import { unsupportedMark } from '../marks/unsupportedMark';
|
|
|
4
4
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
5
5
|
import { unsupportedBlock } from '../nodes/unsupportedBlock';
|
|
6
6
|
import { blockCard } from './blockCard';
|
|
7
|
-
import { bodiedRule } from './bodiedRule';
|
|
8
7
|
import { blockquote } from './blockquote';
|
|
8
|
+
import { bodiedRule } from './bodiedRule';
|
|
9
9
|
import { codeBlock } from './codeBlock';
|
|
10
10
|
import { confluenceUnsupportedBlock } from './confluenceUnsupportedBlock';
|
|
11
11
|
import { decisionList } from './decisionList';
|
|
12
12
|
import { embedCard } from './embedCard';
|
|
13
13
|
import { expand } from './expand';
|
|
14
|
+
import { heading } from './heading';
|
|
15
|
+
import { layoutSection } from './layoutSection';
|
|
14
16
|
import { bulletList, orderedList } from './list';
|
|
15
17
|
import { mediaGroup } from './mediaGroup';
|
|
16
18
|
import { mediaSingle } from './mediaSingle';
|
|
17
19
|
import { panel } from './panel';
|
|
18
20
|
import { paragraph } from './paragraph';
|
|
19
21
|
import { rule } from './rule';
|
|
20
|
-
import { heading } from './heading';
|
|
21
22
|
import { table } from './tableNodes';
|
|
22
23
|
import { taskList } from './task';
|
|
23
|
-
import { layoutSection } from './layoutSection';
|
|
24
24
|
export var bodiedSyncBlock = adfNode('bodiedSyncBlock').define({
|
|
25
25
|
selectable: true,
|
|
26
26
|
isolating: true,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
|
|
2
|
+
import { nonNestableBlockContentGroup } from '../groups/nonNestableBlockContentGroup';
|
|
2
3
|
import { breakout } from '../marks/breakout';
|
|
3
4
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
|
4
5
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
5
6
|
import { nestedExpand } from './nestedExpand';
|
|
6
|
-
import { nonNestableBlockContentGroup } from '../groups/nonNestableBlockContentGroup';
|
|
7
7
|
export var expand = adfNode('expand').define({
|
|
8
8
|
isolating: true,
|
|
9
9
|
selectable: true,
|
|
@@ -6,16 +6,16 @@ import { blockCard } from './blockCard';
|
|
|
6
6
|
import { bodiedRule } from './bodiedRule';
|
|
7
7
|
import { codeBlock } from './codeBlock';
|
|
8
8
|
import { decisionList } from './decisionList';
|
|
9
|
+
import { extension } from './extension';
|
|
9
10
|
import { heading } from './heading';
|
|
10
11
|
import { bulletList, orderedList } from './list';
|
|
11
12
|
import { mediaGroup } from './mediaGroup';
|
|
12
13
|
import { mediaSingle } from './mediaSingle';
|
|
13
14
|
import { paragraph } from './paragraph';
|
|
14
15
|
import { rule } from './rule';
|
|
16
|
+
import { table } from './tableStub';
|
|
15
17
|
import { taskList } from './task';
|
|
16
18
|
import { unsupportedBlock } from './unsupportedBlock';
|
|
17
|
-
import { extension } from './extension';
|
|
18
|
-
import { table } from './tableStub';
|
|
19
19
|
var panelContent = [paragraph.use('with_no_marks'), paragraph.use('with_font_size'), heading.use('with_no_marks'), bulletList, orderedList, blockCard, mediaGroup, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, taskList, rule, rule.use('with_attrs'), bodiedRule, decisionList, unsupportedBlock];
|
|
20
20
|
export var panel = adfNode('panel').define({
|
|
21
21
|
selectable: true,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
|
|
3
|
+
import { tableCellContentPseudoGroup, tableCellContentNodes, tableHeaderContentPseudoGroup } from '../groups/tableCellContentPseudoGroup';
|
|
3
4
|
import { fragment } from '../marks/fragment';
|
|
4
5
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
|
5
6
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
6
|
-
import { tableCellContentPseudoGroup, tableCellContentNodes, tableHeaderContentPseudoGroup } from '../groups/tableCellContentPseudoGroup';
|
|
7
|
-
import { tableCellContent } from './tableCellContent';
|
|
8
7
|
import { nestedExpand } from './nestedExpand';
|
|
9
|
-
import {
|
|
8
|
+
import { tableCellContent } from './tableCellContent';
|
|
10
9
|
import { table } from './tableStub';
|
|
10
|
+
import { unsupportedBlock } from './unsupportedBlock';
|
|
11
11
|
var valign = {
|
|
12
12
|
type: 'enum',
|
|
13
13
|
values: ['top', 'middle', 'bottom'],
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { adfNode } from '@atlaskit/adf-schema-generator';
|
|
2
2
|
import { annotation } from '../marks/annotation';
|
|
3
3
|
import { code } from '../marks/code';
|
|
4
|
+
import { backgroundColor, textColor } from '../marks/color';
|
|
5
|
+
import { confluenceInlineComment } from '../marks/confluenceInlineComment';
|
|
4
6
|
import { em } from '../marks/em';
|
|
5
7
|
import { link } from '../marks/link';
|
|
6
8
|
import { strike } from '../marks/strike';
|
|
7
9
|
import { strong } from '../marks/strong';
|
|
8
10
|
import { subsup } from '../marks/subsup';
|
|
11
|
+
import { typeAheadQuery } from '../marks/typeAheadQuery';
|
|
9
12
|
import { underline } from '../marks/underline';
|
|
10
|
-
import { backgroundColor, textColor } from '../marks/color';
|
|
11
|
-
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
12
13
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
|
13
|
-
import {
|
|
14
|
-
import { confluenceInlineComment } from '../marks/confluenceInlineComment';
|
|
14
|
+
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
15
15
|
export var text = adfNode('text').define({
|
|
16
16
|
marks: [],
|
|
17
17
|
hasEmptyMarks: true
|
|
@@ -10,8 +10,8 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
10
10
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
11
11
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
12
12
|
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
13
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
14
13
|
import { StepResult, StepMap, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
|
14
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
15
15
|
export var analyticsStepType = 'atlaskit-analytics';
|
|
16
16
|
export var analyticsInvertStepType = 'atlaskit-analytics-invert';
|
|
17
17
|
var HISTORY_ACTIONS = /*#__PURE__*/function (HISTORY_ACTIONS) {
|
|
@@ -11,8 +11,8 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
// oxlint-disable-next-line import/no-duplicates
|
|
13
13
|
import { Fragment, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
14
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
15
14
|
import { StepResult } from '@atlaskit/editor-prosemirror/transform';
|
|
15
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
16
16
|
var stepType = 'batchAttrs';
|
|
17
17
|
var isValidData = function isValidData(data) {
|
|
18
18
|
if (data !== null && !Array.isArray(data)) {
|
|
@@ -8,8 +8,8 @@ var _excluded = ["sourceEvent"];
|
|
|
8
8
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
11
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
12
11
|
import { ReplaceStep, StepMap, StepResult } from '@atlaskit/editor-prosemirror/transform';
|
|
12
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
13
13
|
export var stepType = 'editor-linking-meta';
|
|
14
14
|
export var invertStepType = 'editor-linking-meta-invert';
|
|
15
15
|
/**
|
|
@@ -6,8 +6,8 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
7
7
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
8
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
10
9
|
import { StepResult, StepMap } from '@atlaskit/editor-prosemirror/transform';
|
|
10
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
11
11
|
export var overrideDocumentStepType = 'override-document';
|
|
12
12
|
export var OverrideDocumentStep = /*#__PURE__*/function (_Step) {
|
|
13
13
|
function OverrideDocumentStep(opts) {
|
|
@@ -9,9 +9,9 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
9
9
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
10
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
13
|
-
import { StepResult } from '@atlaskit/editor-prosemirror/transform';
|
|
14
12
|
import { Slice, Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
13
|
+
import { StepResult } from '@atlaskit/editor-prosemirror/transform';
|
|
14
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* For more context on what this is about:
|
|
@@ -6,8 +6,8 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
7
7
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
8
|
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
9
|
-
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
10
9
|
import { ReplaceStep, StepMap, StepResult } from '@atlaskit/editor-prosemirror/transform';
|
|
10
|
+
import { Step } from '@atlaskit/editor-prosemirror/transform-override';
|
|
11
11
|
export var insertTypeAheadStepType = 'atlaskit-insert-type-ahead';
|
|
12
12
|
export var InsertTypeAheadStages = /*#__PURE__*/function (InsertTypeAheadStages) {
|
|
13
13
|
InsertTypeAheadStages["DELETING_RAW_QUERY"] = "DELETING_RAW_QUERY";
|
package/dist/esm/utils/colors.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { OptionalRichMediaAttributes } from './types/rich-media-common';
|
|
2
1
|
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { OptionalRichMediaAttributes } from './types/rich-media-common';
|
|
3
3
|
export interface UrlType {
|
|
4
4
|
localId?: string;
|
|
5
5
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { OrderedListDefinition as OrderedList, BulletListDefinition as BulletList } from './types/list';
|
|
1
|
+
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
3
2
|
import type { CodeBlockDefinition as CodeBlock } from './code-block';
|
|
4
3
|
import type { ExtensionDefinition as Extension } from './extension';
|
|
5
4
|
import type { MediaGroupDefinition as MediaGroup } from './media-group';
|
|
6
5
|
import type { MediaSingleDefinition as MediaSingle } from './media-single';
|
|
7
|
-
import type {
|
|
6
|
+
import type { ParagraphDefinition as Paragraph } from './paragraph';
|
|
7
|
+
import type { OrderedListDefinition as OrderedList, BulletListDefinition as BulletList } from './types/list';
|
|
8
8
|
/**
|
|
9
9
|
* @name blockquote_node
|
|
10
10
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { BreakoutMarkDefinition } from '../marks';
|
|
3
3
|
import type { HeadingDefinition } from './heading';
|
|
4
|
-
import type { MarksObject } from './types/mark';
|
|
5
4
|
import type { ParagraphDefinition } from './paragraph';
|
|
5
|
+
import type { MarksObject } from './types/mark';
|
|
6
6
|
export type BodiedRuleAlignment = 'start' | 'center' | 'end';
|
|
7
7
|
export type BodiedRuleStyle = 'solid' | 'dashed' | 'dotted' | 'sketch' | 'fade';
|
|
8
8
|
export interface BodiedRuleAttributes {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
+
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
1
2
|
import type { BreakoutMarkDefinition } from '../marks';
|
|
2
|
-
import type {
|
|
3
|
-
import type { PanelC1Definition as PanelC1, PanelDefinition as Panel } from './panel';
|
|
4
|
-
import type { ParagraphDefinition as Paragraph, ParagraphWithMarksDefinition as ParagraphWithMarks } from './paragraph';
|
|
3
|
+
import type { BlockCardDefinition as BlockCard } from './block-card';
|
|
5
4
|
import type { BlockQuoteDefinition as Blockquote } from './blockquote';
|
|
6
|
-
import type { OrderedListDefinition as OrderedList, BulletListDefinition as BulletList } from './types/list';
|
|
7
|
-
import type { RuleDefinition as Rule } from './rule';
|
|
8
5
|
import type { BodiedRuleDefinition as BodiedRule } from './bodied-rule';
|
|
9
|
-
import type { HeadingDefinition as Heading, HeadingWithMarksDefinition as HeadingWithMarks } from './heading';
|
|
10
|
-
import type { BlockCardDefinition as BlockCard } from './block-card';
|
|
11
6
|
import type { CodeBlockDefinition as CodeBlock } from './code-block';
|
|
12
7
|
import type { DecisionListDefinition as DecisionList } from './decision-list';
|
|
13
8
|
import type { EmbedCardDefinition as EmbedCard } from './embed-card';
|
|
9
|
+
import type { ExpandDefinition as Expand } from './expand';
|
|
10
|
+
import type { HeadingDefinition as Heading, HeadingWithMarksDefinition as HeadingWithMarks } from './heading';
|
|
14
11
|
import type { LayoutSectionDefinition as LayoutSection } from './layout-section';
|
|
15
12
|
import type { MediaGroupDefinition as MediaGroup } from './media-group';
|
|
16
13
|
import type { MediaSingleDefinition as MediaSingle } from './media-single';
|
|
14
|
+
import type { PanelC1Definition as PanelC1, PanelDefinition as Panel } from './panel';
|
|
15
|
+
import type { ParagraphDefinition as Paragraph, ParagraphWithMarksDefinition as ParagraphWithMarks } from './paragraph';
|
|
16
|
+
import type { RuleDefinition as Rule } from './rule';
|
|
17
17
|
import type { TableDefinition as Table } from './tableNodes';
|
|
18
18
|
import type { TaskListDefinition as TaskList } from './task-list';
|
|
19
|
-
import type {
|
|
19
|
+
import type { OrderedListDefinition as OrderedList, BulletListDefinition as BulletList } from './types/list';
|
|
20
20
|
export interface BodiedSyncBlockAttrs {
|
|
21
21
|
/**
|
|
22
22
|
* Required UUID attribute used for unique identification of the node
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
1
2
|
import type { DateDefinition as Date } from './date';
|
|
2
3
|
import type { EmojiDefinition as Emoji } from './emoji';
|
|
3
4
|
import type { HardBreakDefinition as HardBreak } from './hard-break';
|
|
@@ -6,7 +7,6 @@ import type { MentionDefinition as Mention } from './mention';
|
|
|
6
7
|
import type { PlaceholderDefinition as Placeholder } from './placeholder';
|
|
7
8
|
import type { StatusDefinition as Status } from './status';
|
|
8
9
|
import type { InlineFormattedText, InlineCode } from './types/inline-content';
|
|
9
|
-
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
10
10
|
/**
|
|
11
11
|
* @name caption_node
|
|
12
12
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DecisionItemDefinition as DecisionItemNode } from './decision-item';
|
|
2
1
|
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { DecisionItemDefinition as DecisionItemNode } from './decision-item';
|
|
3
3
|
/**
|
|
4
4
|
* @name decisionList_node
|
|
5
5
|
*/
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { BodiedExtensionRootOnlyDefinition as BodiedExtensionRootOnly } from './bodied-extension';
|
|
3
|
+
import type { BodiedRuleRootOnlyDefinition as BodiedRuleRootOnly } from './bodied-rule';
|
|
4
|
+
import type { BodiedSyncBlockDefinition as BodiedSyncBlock } from './bodied-sync-block';
|
|
5
|
+
import type { CodeBlockWithMarksDefinition as CodeBlockWithMarks } from './code-block';
|
|
3
6
|
import type { ExpandRootOnlyDefinition as ExpandRootOnly } from './expand';
|
|
4
7
|
import type { ExtensionRootOnlyDefinition as ExtensionRootOnly } from './extension';
|
|
5
8
|
import type { LayoutSectionDefinition as LayoutSection } from './layout-section';
|
|
6
|
-
import type { ParagraphWithIndentationDefinition } from './paragraph';
|
|
7
|
-
import type { BlockContent } from './types/block-content';
|
|
8
9
|
import type { MultiBodiedExtensionRootOnlyDefinition as MultiBodiedExtensionRootOnly } from './multi-bodied-extension';
|
|
9
10
|
import type { PanelRootOnlyDefinition as PanelRootOnly } from './panel';
|
|
11
|
+
import type { ParagraphWithIndentationDefinition } from './paragraph';
|
|
10
12
|
import type { RuleRootOnlyDefinition as RuleRootOnly } from './rule';
|
|
11
|
-
import type { BodiedRuleRootOnlyDefinition as BodiedRuleRootOnly } from './bodied-rule';
|
|
12
13
|
import type { SyncBlockDefinition as SyncBlock } from './sync-block';
|
|
13
|
-
import type {
|
|
14
|
-
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
14
|
+
import type { BlockContent } from './types/block-content';
|
|
15
15
|
/**
|
|
16
16
|
* @name doc_node
|
|
17
17
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { RichMediaAttributes } from './types/rich-media-common';
|
|
2
1
|
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { RichMediaAttributes } from './types/rich-media-common';
|
|
3
3
|
export interface EmbedCardAttributes extends RichMediaAttributes {
|
|
4
4
|
localId?: string;
|
|
5
5
|
originalHeight?: number;
|