@atlaskit/adf-schema 26.3.0 → 26.4.1

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.
Files changed (206) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/schema/create-schema.js +2 -2
  3. package/dist/cjs/schema/nodes/code-block.js +2 -2
  4. package/dist/cjs/steps/analytics.js +8 -8
  5. package/dist/cjs/steps/link-meta-step.js +7 -7
  6. package/dist/cjs/steps/override-document-step.js +94 -0
  7. package/dist/cjs/steps/set-attrs.js +9 -9
  8. package/dist/cjs/steps/table/add-column.js +10 -10
  9. package/dist/cjs/steps/table/sort-column.js +7 -7
  10. package/dist/cjs/steps/table/utils/side-effects/table.js +3 -3
  11. package/dist/cjs/steps/type-ahead.js +7 -7
  12. package/dist/cjs/steps.js +8 -1
  13. package/dist/cjs/version.json +1 -1
  14. package/dist/es2019/schema/create-schema.js +1 -1
  15. package/dist/es2019/schema/nodes/code-block.js +1 -1
  16. package/dist/es2019/steps/analytics.js +2 -2
  17. package/dist/es2019/steps/link-meta-step.js +2 -2
  18. package/dist/es2019/steps/override-document-step.js +60 -0
  19. package/dist/es2019/steps/set-attrs.js +2 -2
  20. package/dist/es2019/steps/table/add-column.js +1 -1
  21. package/dist/es2019/steps/table/sort-column.js +2 -2
  22. package/dist/es2019/steps/table/utils/side-effects/table.js +1 -1
  23. package/dist/es2019/steps/type-ahead.js +2 -2
  24. package/dist/es2019/steps.js +2 -1
  25. package/dist/es2019/version.json +1 -1
  26. package/dist/esm/schema/create-schema.js +1 -1
  27. package/dist/esm/schema/nodes/code-block.js +1 -1
  28. package/dist/esm/steps/analytics.js +2 -2
  29. package/dist/esm/steps/link-meta-step.js +2 -2
  30. package/dist/esm/steps/override-document-step.js +85 -0
  31. package/dist/esm/steps/set-attrs.js +2 -2
  32. package/dist/esm/steps/table/add-column.js +1 -1
  33. package/dist/esm/steps/table/sort-column.js +2 -2
  34. package/dist/esm/steps/table/utils/side-effects/table.js +1 -1
  35. package/dist/esm/steps/type-ahead.js +2 -2
  36. package/dist/esm/steps.js +2 -1
  37. package/dist/esm/version.json +1 -1
  38. package/dist/types/schema/bitbucket-schema.d.ts +1 -1
  39. package/dist/types/schema/confluence-schema.d.ts +1 -1
  40. package/dist/types/schema/create-schema.d.ts +1 -1
  41. package/dist/types/schema/jira-schema.d.ts +1 -1
  42. package/dist/types/schema/marks/alignment.d.ts +1 -1
  43. package/dist/types/schema/marks/annotation.d.ts +1 -1
  44. package/dist/types/schema/marks/border.d.ts +1 -1
  45. package/dist/types/schema/marks/breakout.d.ts +1 -1
  46. package/dist/types/schema/marks/code.d.ts +1 -1
  47. package/dist/types/schema/marks/confluence-inline-comment.d.ts +1 -1
  48. package/dist/types/schema/marks/data-consumer.d.ts +1 -1
  49. package/dist/types/schema/marks/em.d.ts +1 -1
  50. package/dist/types/schema/marks/fragment.d.ts +1 -1
  51. package/dist/types/schema/marks/indentation.d.ts +1 -1
  52. package/dist/types/schema/marks/link.d.ts +1 -1
  53. package/dist/types/schema/marks/strike.d.ts +1 -1
  54. package/dist/types/schema/marks/strong.d.ts +1 -1
  55. package/dist/types/schema/marks/subsup.d.ts +1 -1
  56. package/dist/types/schema/marks/text-color.d.ts +1 -1
  57. package/dist/types/schema/marks/type-ahead-query.d.ts +1 -1
  58. package/dist/types/schema/marks/underline.d.ts +1 -1
  59. package/dist/types/schema/marks/unsupported-mark.d.ts +1 -1
  60. package/dist/types/schema/marks/unsupported-node-attributes.d.ts +1 -1
  61. package/dist/types/schema/nodes/block-card.d.ts +1 -1
  62. package/dist/types/schema/nodes/blockquote.d.ts +1 -1
  63. package/dist/types/schema/nodes/bodied-extension.d.ts +1 -1
  64. package/dist/types/schema/nodes/bullet-list.d.ts +1 -1
  65. package/dist/types/schema/nodes/caption.d.ts +1 -1
  66. package/dist/types/schema/nodes/code-block.d.ts +1 -1
  67. package/dist/types/schema/nodes/confluence-jira-issue.d.ts +1 -1
  68. package/dist/types/schema/nodes/confluence-unsupported-block.d.ts +1 -1
  69. package/dist/types/schema/nodes/confluence-unsupported-inline.d.ts +1 -1
  70. package/dist/types/schema/nodes/date.d.ts +1 -1
  71. package/dist/types/schema/nodes/decision-item.d.ts +1 -1
  72. package/dist/types/schema/nodes/decision-list.d.ts +1 -1
  73. package/dist/types/schema/nodes/doc.d.ts +1 -1
  74. package/dist/types/schema/nodes/embed-card.d.ts +1 -1
  75. package/dist/types/schema/nodes/emoji.d.ts +1 -1
  76. package/dist/types/schema/nodes/expand.d.ts +1 -1
  77. package/dist/types/schema/nodes/extension.d.ts +1 -1
  78. package/dist/types/schema/nodes/hard-break.d.ts +1 -1
  79. package/dist/types/schema/nodes/heading.d.ts +1 -1
  80. package/dist/types/schema/nodes/image.d.ts +1 -1
  81. package/dist/types/schema/nodes/inline-card.d.ts +1 -1
  82. package/dist/types/schema/nodes/inline-extension.d.ts +1 -1
  83. package/dist/types/schema/nodes/layout-column.d.ts +1 -1
  84. package/dist/types/schema/nodes/layout-section.d.ts +1 -1
  85. package/dist/types/schema/nodes/list-item.d.ts +1 -1
  86. package/dist/types/schema/nodes/media-group.d.ts +1 -1
  87. package/dist/types/schema/nodes/media-inline.d.ts +1 -1
  88. package/dist/types/schema/nodes/media-single.d.ts +1 -1
  89. package/dist/types/schema/nodes/media.d.ts +1 -1
  90. package/dist/types/schema/nodes/mention.d.ts +1 -1
  91. package/dist/types/schema/nodes/nested-expand.d.ts +1 -1
  92. package/dist/types/schema/nodes/ordered-list.d.ts +1 -1
  93. package/dist/types/schema/nodes/panel.d.ts +1 -1
  94. package/dist/types/schema/nodes/paragraph.d.ts +1 -1
  95. package/dist/types/schema/nodes/placeholder.d.ts +1 -1
  96. package/dist/types/schema/nodes/rule.d.ts +1 -1
  97. package/dist/types/schema/nodes/status.d.ts +1 -1
  98. package/dist/types/schema/nodes/tableNodes.d.ts +1 -1
  99. package/dist/types/schema/nodes/task-item.d.ts +1 -1
  100. package/dist/types/schema/nodes/task-list.d.ts +1 -1
  101. package/dist/types/schema/nodes/text.d.ts +1 -1
  102. package/dist/types/schema/nodes/unknown-block.d.ts +1 -1
  103. package/dist/types/schema/nodes/unsupported-block.d.ts +1 -1
  104. package/dist/types/schema/nodes/unsupported-inline.d.ts +1 -1
  105. package/dist/types/steps/analytics.d.ts +2 -2
  106. package/dist/types/steps/link-meta-step.d.ts +2 -2
  107. package/dist/types/steps/override-document-step.d.ts +27 -0
  108. package/dist/types/steps/set-attrs.d.ts +2 -2
  109. package/dist/types/steps/table/add-column.d.ts +2 -2
  110. package/dist/types/steps/table/sort-column.d.ts +2 -2
  111. package/dist/types/steps/table/types.d.ts +1 -1
  112. package/dist/types/steps/table/utils/cell-step.d.ts +2 -2
  113. package/dist/types/steps/table/utils/cells-at-column.d.ts +1 -1
  114. package/dist/types/steps/table/utils/get-table-rect-from-doc.d.ts +1 -1
  115. package/dist/types/steps/table/utils/side-effects/rows.d.ts +2 -2
  116. package/dist/types/steps/table/utils/side-effects/side-effects.d.ts +2 -2
  117. package/dist/types/steps/table/utils/side-effects/table.d.ts +2 -2
  118. package/dist/types/steps/table/utils/side-effects/types.d.ts +1 -1
  119. package/dist/types/steps/type-ahead.d.ts +2 -2
  120. package/dist/types/steps.d.ts +2 -0
  121. package/dist/types-ts4.5/schema/bitbucket-schema.d.ts +1 -1
  122. package/dist/types-ts4.5/schema/confluence-schema.d.ts +1 -1
  123. package/dist/types-ts4.5/schema/create-schema.d.ts +1 -1
  124. package/dist/types-ts4.5/schema/jira-schema.d.ts +1 -1
  125. package/dist/types-ts4.5/schema/marks/alignment.d.ts +1 -1
  126. package/dist/types-ts4.5/schema/marks/annotation.d.ts +1 -1
  127. package/dist/types-ts4.5/schema/marks/border.d.ts +1 -1
  128. package/dist/types-ts4.5/schema/marks/breakout.d.ts +1 -1
  129. package/dist/types-ts4.5/schema/marks/code.d.ts +1 -1
  130. package/dist/types-ts4.5/schema/marks/confluence-inline-comment.d.ts +1 -1
  131. package/dist/types-ts4.5/schema/marks/data-consumer.d.ts +1 -1
  132. package/dist/types-ts4.5/schema/marks/em.d.ts +1 -1
  133. package/dist/types-ts4.5/schema/marks/fragment.d.ts +1 -1
  134. package/dist/types-ts4.5/schema/marks/indentation.d.ts +1 -1
  135. package/dist/types-ts4.5/schema/marks/link.d.ts +1 -1
  136. package/dist/types-ts4.5/schema/marks/strike.d.ts +1 -1
  137. package/dist/types-ts4.5/schema/marks/strong.d.ts +1 -1
  138. package/dist/types-ts4.5/schema/marks/subsup.d.ts +1 -1
  139. package/dist/types-ts4.5/schema/marks/text-color.d.ts +1 -1
  140. package/dist/types-ts4.5/schema/marks/type-ahead-query.d.ts +1 -1
  141. package/dist/types-ts4.5/schema/marks/underline.d.ts +1 -1
  142. package/dist/types-ts4.5/schema/marks/unsupported-mark.d.ts +1 -1
  143. package/dist/types-ts4.5/schema/marks/unsupported-node-attributes.d.ts +1 -1
  144. package/dist/types-ts4.5/schema/nodes/block-card.d.ts +1 -1
  145. package/dist/types-ts4.5/schema/nodes/blockquote.d.ts +1 -1
  146. package/dist/types-ts4.5/schema/nodes/bodied-extension.d.ts +1 -1
  147. package/dist/types-ts4.5/schema/nodes/bullet-list.d.ts +1 -1
  148. package/dist/types-ts4.5/schema/nodes/caption.d.ts +1 -1
  149. package/dist/types-ts4.5/schema/nodes/code-block.d.ts +1 -1
  150. package/dist/types-ts4.5/schema/nodes/confluence-jira-issue.d.ts +1 -1
  151. package/dist/types-ts4.5/schema/nodes/confluence-unsupported-block.d.ts +1 -1
  152. package/dist/types-ts4.5/schema/nodes/confluence-unsupported-inline.d.ts +1 -1
  153. package/dist/types-ts4.5/schema/nodes/date.d.ts +1 -1
  154. package/dist/types-ts4.5/schema/nodes/decision-item.d.ts +1 -1
  155. package/dist/types-ts4.5/schema/nodes/decision-list.d.ts +1 -1
  156. package/dist/types-ts4.5/schema/nodes/doc.d.ts +1 -1
  157. package/dist/types-ts4.5/schema/nodes/embed-card.d.ts +1 -1
  158. package/dist/types-ts4.5/schema/nodes/emoji.d.ts +1 -1
  159. package/dist/types-ts4.5/schema/nodes/expand.d.ts +1 -1
  160. package/dist/types-ts4.5/schema/nodes/extension.d.ts +1 -1
  161. package/dist/types-ts4.5/schema/nodes/hard-break.d.ts +1 -1
  162. package/dist/types-ts4.5/schema/nodes/heading.d.ts +1 -1
  163. package/dist/types-ts4.5/schema/nodes/image.d.ts +1 -1
  164. package/dist/types-ts4.5/schema/nodes/inline-card.d.ts +1 -1
  165. package/dist/types-ts4.5/schema/nodes/inline-extension.d.ts +1 -1
  166. package/dist/types-ts4.5/schema/nodes/layout-column.d.ts +1 -1
  167. package/dist/types-ts4.5/schema/nodes/layout-section.d.ts +1 -1
  168. package/dist/types-ts4.5/schema/nodes/list-item.d.ts +1 -1
  169. package/dist/types-ts4.5/schema/nodes/media-group.d.ts +1 -1
  170. package/dist/types-ts4.5/schema/nodes/media-inline.d.ts +1 -1
  171. package/dist/types-ts4.5/schema/nodes/media-single.d.ts +1 -1
  172. package/dist/types-ts4.5/schema/nodes/media.d.ts +1 -1
  173. package/dist/types-ts4.5/schema/nodes/mention.d.ts +1 -1
  174. package/dist/types-ts4.5/schema/nodes/nested-expand.d.ts +1 -1
  175. package/dist/types-ts4.5/schema/nodes/ordered-list.d.ts +1 -1
  176. package/dist/types-ts4.5/schema/nodes/panel.d.ts +1 -1
  177. package/dist/types-ts4.5/schema/nodes/paragraph.d.ts +1 -1
  178. package/dist/types-ts4.5/schema/nodes/placeholder.d.ts +1 -1
  179. package/dist/types-ts4.5/schema/nodes/rule.d.ts +1 -1
  180. package/dist/types-ts4.5/schema/nodes/status.d.ts +1 -1
  181. package/dist/types-ts4.5/schema/nodes/tableNodes.d.ts +1 -1
  182. package/dist/types-ts4.5/schema/nodes/task-item.d.ts +1 -1
  183. package/dist/types-ts4.5/schema/nodes/task-list.d.ts +1 -1
  184. package/dist/types-ts4.5/schema/nodes/text.d.ts +1 -1
  185. package/dist/types-ts4.5/schema/nodes/unknown-block.d.ts +1 -1
  186. package/dist/types-ts4.5/schema/nodes/unsupported-block.d.ts +1 -1
  187. package/dist/types-ts4.5/schema/nodes/unsupported-inline.d.ts +1 -1
  188. package/dist/types-ts4.5/steps/analytics.d.ts +2 -2
  189. package/dist/types-ts4.5/steps/link-meta-step.d.ts +2 -2
  190. package/dist/types-ts4.5/steps/override-document-step.d.ts +27 -0
  191. package/dist/types-ts4.5/steps/set-attrs.d.ts +2 -2
  192. package/dist/types-ts4.5/steps/table/add-column.d.ts +2 -2
  193. package/dist/types-ts4.5/steps/table/sort-column.d.ts +2 -2
  194. package/dist/types-ts4.5/steps/table/types.d.ts +1 -1
  195. package/dist/types-ts4.5/steps/table/utils/cell-step.d.ts +2 -2
  196. package/dist/types-ts4.5/steps/table/utils/cells-at-column.d.ts +1 -1
  197. package/dist/types-ts4.5/steps/table/utils/get-table-rect-from-doc.d.ts +1 -1
  198. package/dist/types-ts4.5/steps/table/utils/side-effects/rows.d.ts +2 -2
  199. package/dist/types-ts4.5/steps/table/utils/side-effects/side-effects.d.ts +2 -2
  200. package/dist/types-ts4.5/steps/table/utils/side-effects/table.d.ts +2 -2
  201. package/dist/types-ts4.5/steps/table/utils/side-effects/types.d.ts +1 -1
  202. package/dist/types-ts4.5/steps/type-ahead.d.ts +2 -2
  203. package/dist/types-ts4.5/steps.d.ts +2 -0
  204. package/package.json +3 -6
  205. package/report.api.md +5 -5
  206. package/tmp/api-report-tmp.d.ts +5 -5
@@ -1,4 +1,4 @@
1
- import { NodeSpec, Node as PMNode } from 'prosemirror-model';
1
+ import { NodeSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
2
  import { MediaDefinition as Media } from './media';
3
3
  import { LinkDefinition } from '../marks/link';
4
4
  import { ExtendedMediaAttributes } from './types/rich-media-common';
@@ -1,4 +1,4 @@
1
- import { NodeSpec, Node as PMNode } from 'prosemirror-model';
1
+ import { NodeSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
2
  import { BorderMarkDefinition } from '../marks/border';
3
3
  import { LinkDefinition } from '../marks/link';
4
4
  export type MediaType = 'file' | 'link' | 'external';
@@ -1,4 +1,4 @@
1
- import { NodeSpec, Node as PMNode } from 'prosemirror-model';
1
+ import { NodeSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
2
  export declare enum USER_TYPES {
3
3
  DEFAULT = "DEFAULT",
4
4
  SPECIAL = "SPECIAL",
@@ -1,4 +1,4 @@
1
- import { NodeSpec } from 'prosemirror-model';
1
+ import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
2
  import { NoMark } from './types/mark';
3
3
  import { ParagraphDefinition as Paragraph } from './paragraph';
4
4
  import { HeadingDefinition as Heading } from './heading';
@@ -1,4 +1,4 @@
1
- import { NodeSpec } from 'prosemirror-model';
1
+ import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
2
  export declare const orderedListSelector = ".ak-ol";
3
3
  export declare const orderedList: NodeSpec;
4
4
  export declare const orderedListWithOrder: NodeSpec;
@@ -1,4 +1,4 @@
1
- import { NodeSpec } from 'prosemirror-model';
1
+ import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
2
  import { ParagraphDefinition as Paragraph } from './paragraph';
3
3
  import { OrderedListDefinition as OrderedList } from './types/list';
4
4
  import { BulletListDefinition as BulletList } from './types/list';
@@ -1,4 +1,4 @@
1
- import { NodeSpec } from 'prosemirror-model';
1
+ import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
2
  import { AlignmentMarkDefinition, IndentationMarkDefinition } from '../marks';
3
3
  import { MarksObject, NoMark } from './types/mark';
4
4
  import { Inline } from './types/inline-content';
@@ -1,4 +1,4 @@
1
- import { NodeSpec } from 'prosemirror-model';
1
+ import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
2
  /**
3
3
  * @name placeholder_node
4
4
  */
@@ -1,4 +1,4 @@
1
- import { NodeSpec } from 'prosemirror-model';
1
+ import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
2
  /**
3
3
  * @name rule_node
4
4
  */
@@ -1,4 +1,4 @@
1
- import { NodeSpec } from 'prosemirror-model';
1
+ import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
2
  /**
3
3
  * @name status_node
4
4
  */
@@ -1,4 +1,4 @@
1
- import { Node as PmNode, NodeSpec } from 'prosemirror-model';
1
+ import { Node as PmNode, NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
2
  import { CellAttributes } from '@atlaskit/editor-tables/types';
3
3
  import { PanelDefinition as Panel } from './panel';
4
4
  import { ParagraphDefinition as Paragraph, ParagraphWithAlignmentDefinition as ParagraphWithMarks } from './paragraph';
@@ -1,4 +1,4 @@
1
- import { NodeSpec } from 'prosemirror-model';
1
+ import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
2
  import { Inline } from './types/inline-content';
3
3
  /**
4
4
  * @name taskItem_node
@@ -1,4 +1,4 @@
1
- import { NodeSpec } from 'prosemirror-model';
1
+ import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
2
  import { TaskItemDefinition as TaskItemNode } from './task-item';
3
3
  export interface TaskListContent extends Array<TaskItemNode | TaskListDefinition> {
4
4
  0: TaskItemNode;
@@ -1,4 +1,4 @@
1
- import { NodeSpec } from 'prosemirror-model';
1
+ import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
2
  /**
3
3
  * @name text_node
4
4
  */
@@ -1,3 +1,3 @@
1
- import { NodeSpec } from 'prosemirror-model';
1
+ import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
2
  declare const _default: NodeSpec;
3
3
  export default _default;
@@ -1,2 +1,2 @@
1
- import { NodeSpec } from 'prosemirror-model';
1
+ import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
2
  export declare const unsupportedBlock: NodeSpec;
@@ -1,2 +1,2 @@
1
- import { NodeSpec } from 'prosemirror-model';
1
+ import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
2
  export declare const unsupportedInline: NodeSpec;
@@ -1,5 +1,5 @@
1
- import { Node as PMNode } from 'prosemirror-model';
2
- import { Step, StepResult, StepMap, ReplaceStep, Mappable } from 'prosemirror-transform';
1
+ import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
+ import { Step, StepResult, StepMap, ReplaceStep, Mappable } from '@atlaskit/editor-prosemirror/transform';
3
3
  export declare const analyticsStepType = "atlaskit-analytics";
4
4
  export declare const analyticsInvertStepType = "atlaskit-analytics-invert";
5
5
  export interface AnalyticsPayload {
@@ -1,5 +1,5 @@
1
- import { Node as PMNode, Schema } from 'prosemirror-model';
2
- import { ReplaceStep, Step, StepMap, StepResult, Mappable } from 'prosemirror-transform';
1
+ import { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
2
+ import { ReplaceStep, Step, StepMap, StepResult, Mappable } from '@atlaskit/editor-prosemirror/transform';
3
3
  export declare const stepType = "editor-linking-meta";
4
4
  export declare const invertStepType = "editor-linking-meta-invert";
5
5
  export type LinkStepMetadata = {
@@ -0,0 +1,27 @@
1
+ import { Step, StepResult, StepMap } from '@atlaskit/editor-prosemirror/transform';
2
+ import { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
3
+ type Options = {
4
+ nextDocument: PMNode;
5
+ inverted?: boolean;
6
+ };
7
+ export declare const overrideDocumentStepType = "override-document";
8
+ export declare class OverrideDocumentStep extends Step {
9
+ inverted: boolean;
10
+ private nextDocument;
11
+ private oldDocumentSize;
12
+ constructor(opts: Options);
13
+ apply(doc: PMNode): StepResult;
14
+ map(): OverrideDocumentStep;
15
+ getMap(): StepMap;
16
+ invert(doc: PMNode): OverrideDocumentStep;
17
+ toJSON(): OverrideDocumentStepJSON;
18
+ static fromJSON(schema: Schema, json: OverrideDocumentStepJSON): OverrideDocumentStep;
19
+ }
20
+ export type OverrideDocumentStepJSON = {
21
+ stepType: 'override-document';
22
+ inverted: boolean;
23
+ nextDocument: {
24
+ [key: string]: any;
25
+ };
26
+ };
27
+ export {};
@@ -1,5 +1,5 @@
1
- import { Mappable, Step, StepResult } from 'prosemirror-transform';
2
- import { Node as ProseMirrorNode, Schema } from 'prosemirror-model';
1
+ import { Mappable, Step, StepResult } from '@atlaskit/editor-prosemirror/transform';
2
+ import { Node as ProseMirrorNode, Schema } from '@atlaskit/editor-prosemirror/model';
3
3
  /**
4
4
  * For more context on what this is about:
5
5
  * @see https://discuss.prosemirror.net/t/preventing-image-placeholder-replacement-from-being-undone/1394
@@ -1,5 +1,5 @@
1
- import { Node as ProseMirrorNode, Schema } from 'prosemirror-model';
2
- import { Mappable, Step, StepMap, StepResult } from 'prosemirror-transform';
1
+ import { Node as ProseMirrorNode, Schema } from '@atlaskit/editor-prosemirror/model';
2
+ import { Mappable, Step, StepMap, StepResult } from '@atlaskit/editor-prosemirror/transform';
3
3
  import { AddColumnStepInfo, AddColumnStepJson } from './types';
4
4
  /**
5
5
  * Index and positions looks like
@@ -1,5 +1,5 @@
1
- import { Node as PMNode } from 'prosemirror-model';
2
- import { ReplaceStep, Step, StepMap, StepResult } from 'prosemirror-transform';
1
+ import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
+ import { ReplaceStep, Step, StepMap, StepResult } from '@atlaskit/editor-prosemirror/transform';
3
3
  import { TableColumnOrdering } from './types';
4
4
  export declare const tableSortingStepType = "atlaskit-table-sorting-ordering";
5
5
  export declare class TableSortStep extends Step {
@@ -1,4 +1,4 @@
1
- import { Node as ProseMirrorNode } from 'prosemirror-model';
1
+ import { Node as ProseMirrorNode } from '@atlaskit/editor-prosemirror/model';
2
2
  import { SideEffects, SideEffectsJSON } from './utils/side-effects/types';
3
3
  import { SortOrder } from './constants';
4
4
  export type ColumnInfo = Map<number, CellStep>;
@@ -1,7 +1,7 @@
1
- import { Node as ProseMirrorNode } from 'prosemirror-model';
1
+ import { Node as ProseMirrorNode } from '@atlaskit/editor-prosemirror/model';
2
2
  import { Cell } from './cells-at-column';
3
3
  import { CellStep } from '../types';
4
- import { Transform, StepMap } from 'prosemirror-transform';
4
+ import { Transform, StepMap } from '@atlaskit/editor-prosemirror/transform';
5
5
  import { TableRect } from '@atlaskit/editor-tables/table-map';
6
6
  /**
7
7
  * Given a cell step, this function has to do the specific transformation to executed that step.
@@ -1,5 +1,5 @@
1
1
  import { TableRect } from '@atlaskit/editor-tables/table-map';
2
- import { NodeType } from 'prosemirror-model';
2
+ import { NodeType } from '@atlaskit/editor-prosemirror/model';
3
3
  import { CellAttributes } from '../../../schema/nodes/tableNodes';
4
4
  export interface Cell {
5
5
  from: number;
@@ -1,4 +1,4 @@
1
- import { Node as ProseMirrorNode } from 'prosemirror-model';
1
+ import { Node as ProseMirrorNode } from '@atlaskit/editor-prosemirror/model';
2
2
  import { TableRect } from '@atlaskit/editor-tables/table-map';
3
3
  /**
4
4
  * Util to get the table rect from the docs
@@ -1,5 +1,5 @@
1
- import { Node as ProseMirrorNode, Schema } from 'prosemirror-model';
2
- import { Mappable, StepMap, Transform } from 'prosemirror-transform';
1
+ import { Node as ProseMirrorNode, Schema } from '@atlaskit/editor-prosemirror/model';
2
+ import { Mappable, StepMap, Transform } from '@atlaskit/editor-prosemirror/transform';
3
3
  import { TableRect } from '@atlaskit/editor-tables/table-map';
4
4
  import { RowSideEffect, RowSideEffectJSON } from './types';
5
5
  import { Cell } from '../cells-at-column';
@@ -1,5 +1,5 @@
1
- import { Node as ProseMirrorNode, Schema } from 'prosemirror-model';
2
- import { Mappable, StepMap } from 'prosemirror-transform';
1
+ import { Node as ProseMirrorNode, Schema } from '@atlaskit/editor-prosemirror/model';
2
+ import { Mappable, StepMap } from '@atlaskit/editor-prosemirror/transform';
3
3
  import { SideEffects, SideEffectsJSON } from './types';
4
4
  import { TableSideEffectHandler } from './table';
5
5
  import { RowsSideEffectHandler } from './rows';
@@ -1,5 +1,5 @@
1
- import { Node as ProseMirrorNode, Schema } from 'prosemirror-model';
2
- import { Mappable, StepMap, Transform } from 'prosemirror-transform';
1
+ import { Node as ProseMirrorNode, Schema } from '@atlaskit/editor-prosemirror/model';
2
+ import { Mappable, StepMap, Transform } from '@atlaskit/editor-prosemirror/transform';
3
3
  import { TableRect } from '@atlaskit/editor-tables/table-map';
4
4
  import { TableSideEffect, TableSideEffectJSON } from './types';
5
5
  export declare class TableSideEffectHandler {
@@ -1,4 +1,4 @@
1
- import { Node as ProseMirrorNode } from 'prosemirror-model';
1
+ import { Node as ProseMirrorNode } from '@atlaskit/editor-prosemirror/model';
2
2
  export interface TableSideEffect {
3
3
  from: number;
4
4
  to: number;
@@ -1,5 +1,5 @@
1
- import { Node as PMNode } from 'prosemirror-model';
2
- import { Mappable, ReplaceStep, Step, StepMap, StepResult } from 'prosemirror-transform';
1
+ import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
+ import { Mappable, ReplaceStep, Step, StepMap, StepResult } from '@atlaskit/editor-prosemirror/transform';
3
3
  export declare const insertTypeAheadStepType = "atlaskit-insert-type-ahead";
4
4
  export declare enum InsertTypeAheadStages {
5
5
  DELETING_RAW_QUERY = "DELETING_RAW_QUERY",
@@ -8,3 +8,5 @@ export type { TableColumnOrdering } from './steps/table/types';
8
8
  export type { AnalyticsInvertStep, AnalyticsWithChannel, AnalyticsPayload, } from './steps/analytics';
9
9
  export { LinkMetaStep } from './steps/link-meta-step';
10
10
  export type { LinkStepMetadata } from './steps/link-meta-step';
11
+ export { OverrideDocumentStep } from './steps/override-document-step';
12
+ export type { OverrideDocumentStepJSON } from './steps/override-document-step';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "26.3.0",
3
+ "version": "26.4.1",
4
4
  "description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -49,20 +49,17 @@
49
49
  "dependencies": {
50
50
  "@atlaskit/codemod-utils": "^4.2.0",
51
51
  "@atlaskit/editor-palette": "1.5.1",
52
+ "@atlaskit/editor-prosemirror": "1.0.2",
52
53
  "@atlaskit/editor-tables": "^2.3.0",
53
54
  "@babel/runtime": "^7.0.0",
54
55
  "css-color-names": "0.0.4",
55
56
  "linkify-it": "^2.0.3",
56
- "memoize-one": "^6.0.0",
57
- "prosemirror-model": "1.16.0",
58
- "prosemirror-transform": "1.3.2"
57
+ "memoize-one": "^6.0.0"
59
58
  },
60
59
  "devDependencies": {
61
60
  "@atlaskit/editor-test-helpers": "^18.10.0",
62
61
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
63
62
  "@types/linkify-it": "^2.0.4",
64
- "prosemirror-history": "^1.1.3",
65
- "prosemirror-state": "1.3.4",
66
63
  "typescript": "~4.9.5"
67
64
  },
68
65
  "techstack": {
package/report.api.md CHANGED
@@ -17,11 +17,11 @@
17
17
  ```ts
18
18
  import { CellAttributes } from '@atlaskit/editor-tables/types';
19
19
  import LinkifyIt from 'linkify-it';
20
- import { Mark } from 'prosemirror-model';
21
- import { MarkSpec } from 'prosemirror-model';
22
- import { Node as Node_2 } from 'prosemirror-model';
23
- import { NodeSpec } from 'prosemirror-model';
24
- import { Schema } from 'prosemirror-model';
20
+ import { Mark } from '@atlaskit/editor-prosemirror/model';
21
+ import { MarkSpec } from '@atlaskit/editor-prosemirror/model';
22
+ import { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
23
+ import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
24
+ import { Schema } from '@atlaskit/editor-prosemirror/model';
25
25
 
26
26
  // @public (undocumented)
27
27
  export function acNameToEmoji(acName: NameToEmoji): {
@@ -6,11 +6,11 @@
6
6
 
7
7
  import { CellAttributes } from '@atlaskit/editor-tables/types';
8
8
  import LinkifyIt from 'linkify-it';
9
- import { Mark } from 'prosemirror-model';
10
- import { MarkSpec } from 'prosemirror-model';
11
- import { Node as Node_2 } from 'prosemirror-model';
12
- import { NodeSpec } from 'prosemirror-model';
13
- import { Schema } from 'prosemirror-model';
9
+ import { Mark } from '@atlaskit/editor-prosemirror/model';
10
+ import { MarkSpec } from '@atlaskit/editor-prosemirror/model';
11
+ import { Node as Node_2 } from '@atlaskit/editor-prosemirror/model';
12
+ import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
13
+ import { Schema } from '@atlaskit/editor-prosemirror/model';
14
14
 
15
15
  // @public (undocumented)
16
16
  export function acNameToEmoji(acName: NameToEmoji): {