@atlaskit/adf-schema 49.0.6 → 50.0.0

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 (190) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/index.js +132 -0
  3. package/dist/cjs/next-schema/generated/nodeTypes.js +140 -1
  4. package/dist/cjs/next-schema/nodes/blockCard.js +15 -0
  5. package/dist/cjs/next-schema/nodes/blockquote.js +16 -2
  6. package/dist/cjs/next-schema/nodes/caption.js +7 -0
  7. package/dist/cjs/next-schema/nodes/codeBlock.js +5 -0
  8. package/dist/cjs/next-schema/nodes/date.js +5 -0
  9. package/dist/cjs/next-schema/nodes/embedCard.js +5 -0
  10. package/dist/cjs/next-schema/nodes/emoji.js +5 -0
  11. package/dist/cjs/next-schema/nodes/expand.js +5 -0
  12. package/dist/cjs/next-schema/nodes/hardBreak.js +5 -0
  13. package/dist/cjs/next-schema/nodes/inlineCard.js +10 -0
  14. package/dist/cjs/next-schema/nodes/layoutColumn.js +5 -0
  15. package/dist/cjs/next-schema/nodes/layoutSection.js +12 -0
  16. package/dist/cjs/next-schema/nodes/list.js +20 -1
  17. package/dist/cjs/next-schema/nodes/media.js +10 -0
  18. package/dist/cjs/next-schema/nodes/mediaInline.js +5 -0
  19. package/dist/cjs/next-schema/nodes/mediaSingle.js +10 -0
  20. package/dist/cjs/next-schema/nodes/nestedExpand.js +5 -0
  21. package/dist/cjs/next-schema/nodes/panel.js +5 -0
  22. package/dist/cjs/next-schema/nodes/placeholder.js +5 -0
  23. package/dist/cjs/next-schema/nodes/rule.js +9 -1
  24. package/dist/cjs/next-schema/nodes/tableNodes.js +17 -0
  25. package/dist/cjs/schema/index.js +138 -0
  26. package/dist/cjs/schema/nodes/block-card.js +48 -1
  27. package/dist/cjs/schema/nodes/blockquote.js +20 -2
  28. package/dist/cjs/schema/nodes/bullet-list.js +20 -1
  29. package/dist/cjs/schema/nodes/caption.js +20 -1
  30. package/dist/cjs/schema/nodes/code-block.js +72 -2
  31. package/dist/cjs/schema/nodes/date.js +22 -1
  32. package/dist/cjs/schema/nodes/embed-card.js +36 -1
  33. package/dist/cjs/schema/nodes/emoji.js +73 -1
  34. package/dist/cjs/schema/nodes/expand.js +56 -1
  35. package/dist/cjs/schema/nodes/hard-break.js +18 -1
  36. package/dist/cjs/schema/nodes/index.js +138 -0
  37. package/dist/cjs/schema/nodes/inline-card.js +46 -1
  38. package/dist/cjs/schema/nodes/layout-column.js +37 -1
  39. package/dist/cjs/schema/nodes/layout-section.js +31 -1
  40. package/dist/cjs/schema/nodes/list-item.js +34 -1
  41. package/dist/cjs/schema/nodes/media-inline.js +12 -2
  42. package/dist/cjs/schema/nodes/media-single.js +22 -2
  43. package/dist/cjs/schema/nodes/media.js +21 -4
  44. package/dist/cjs/schema/nodes/nested-expand.js +34 -7
  45. package/dist/cjs/schema/nodes/ordered-list.js +54 -3
  46. package/dist/cjs/schema/nodes/panel.js +13 -5
  47. package/dist/cjs/schema/nodes/placeholder.js +24 -1
  48. package/dist/cjs/schema/nodes/rule.js +18 -1
  49. package/dist/cjs/schema/nodes/tableNodes.js +69 -6
  50. package/dist/cjs/validator-schema/generated/validatorSpec.js +159 -0
  51. package/dist/es2019/index.js +2 -2
  52. package/dist/es2019/next-schema/generated/nodeTypes.js +140 -1
  53. package/dist/es2019/next-schema/nodes/blockCard.js +15 -0
  54. package/dist/es2019/next-schema/nodes/blockquote.js +16 -2
  55. package/dist/es2019/next-schema/nodes/caption.js +7 -0
  56. package/dist/es2019/next-schema/nodes/codeBlock.js +5 -0
  57. package/dist/es2019/next-schema/nodes/date.js +5 -0
  58. package/dist/es2019/next-schema/nodes/embedCard.js +5 -0
  59. package/dist/es2019/next-schema/nodes/emoji.js +5 -0
  60. package/dist/es2019/next-schema/nodes/expand.js +5 -0
  61. package/dist/es2019/next-schema/nodes/hardBreak.js +5 -0
  62. package/dist/es2019/next-schema/nodes/inlineCard.js +10 -0
  63. package/dist/es2019/next-schema/nodes/layoutColumn.js +5 -0
  64. package/dist/es2019/next-schema/nodes/layoutSection.js +12 -0
  65. package/dist/es2019/next-schema/nodes/list.js +20 -1
  66. package/dist/es2019/next-schema/nodes/media.js +10 -0
  67. package/dist/es2019/next-schema/nodes/mediaInline.js +5 -0
  68. package/dist/es2019/next-schema/nodes/mediaSingle.js +10 -0
  69. package/dist/es2019/next-schema/nodes/nestedExpand.js +5 -0
  70. package/dist/es2019/next-schema/nodes/panel.js +5 -0
  71. package/dist/es2019/next-schema/nodes/placeholder.js +5 -0
  72. package/dist/es2019/next-schema/nodes/rule.js +9 -1
  73. package/dist/es2019/next-schema/nodes/tableNodes.js +17 -0
  74. package/dist/es2019/schema/default-schema.js +1 -1
  75. package/dist/es2019/schema/index.js +1 -1
  76. package/dist/es2019/schema/nodes/block-card.js +50 -0
  77. package/dist/es2019/schema/nodes/blockquote.js +19 -1
  78. package/dist/es2019/schema/nodes/bullet-list.js +19 -0
  79. package/dist/es2019/schema/nodes/caption.js +19 -0
  80. package/dist/es2019/schema/nodes/code-block.js +68 -0
  81. package/dist/es2019/schema/nodes/date.js +19 -0
  82. package/dist/es2019/schema/nodes/embed-card.js +34 -0
  83. package/dist/es2019/schema/nodes/emoji.js +71 -0
  84. package/dist/es2019/schema/nodes/expand.js +59 -0
  85. package/dist/es2019/schema/nodes/hard-break.js +15 -0
  86. package/dist/es2019/schema/nodes/index.js +20 -20
  87. package/dist/es2019/schema/nodes/inline-card.js +45 -0
  88. package/dist/es2019/schema/nodes/layout-column.js +38 -0
  89. package/dist/es2019/schema/nodes/layout-section.js +32 -0
  90. package/dist/es2019/schema/nodes/list-item.js +29 -0
  91. package/dist/es2019/schema/nodes/media-inline.js +8 -1
  92. package/dist/es2019/schema/nodes/media-single.js +20 -1
  93. package/dist/es2019/schema/nodes/media.js +17 -4
  94. package/dist/es2019/schema/nodes/nested-expand.js +21 -6
  95. package/dist/es2019/schema/nodes/ordered-list.js +51 -2
  96. package/dist/es2019/schema/nodes/panel.js +11 -5
  97. package/dist/es2019/schema/nodes/placeholder.js +23 -0
  98. package/dist/es2019/schema/nodes/rule.js +15 -0
  99. package/dist/es2019/schema/nodes/tableNodes.js +59 -3
  100. package/dist/es2019/validator-schema/generated/validatorSpec.js +159 -0
  101. package/dist/esm/index.js +2 -2
  102. package/dist/esm/next-schema/generated/nodeTypes.js +140 -1
  103. package/dist/esm/next-schema/nodes/blockCard.js +15 -0
  104. package/dist/esm/next-schema/nodes/blockquote.js +16 -2
  105. package/dist/esm/next-schema/nodes/caption.js +7 -0
  106. package/dist/esm/next-schema/nodes/codeBlock.js +5 -0
  107. package/dist/esm/next-schema/nodes/date.js +5 -0
  108. package/dist/esm/next-schema/nodes/embedCard.js +5 -0
  109. package/dist/esm/next-schema/nodes/emoji.js +5 -0
  110. package/dist/esm/next-schema/nodes/expand.js +5 -0
  111. package/dist/esm/next-schema/nodes/hardBreak.js +5 -0
  112. package/dist/esm/next-schema/nodes/inlineCard.js +10 -0
  113. package/dist/esm/next-schema/nodes/layoutColumn.js +5 -0
  114. package/dist/esm/next-schema/nodes/layoutSection.js +12 -0
  115. package/dist/esm/next-schema/nodes/list.js +20 -1
  116. package/dist/esm/next-schema/nodes/media.js +10 -0
  117. package/dist/esm/next-schema/nodes/mediaInline.js +5 -0
  118. package/dist/esm/next-schema/nodes/mediaSingle.js +10 -0
  119. package/dist/esm/next-schema/nodes/nestedExpand.js +5 -0
  120. package/dist/esm/next-schema/nodes/panel.js +5 -0
  121. package/dist/esm/next-schema/nodes/placeholder.js +5 -0
  122. package/dist/esm/next-schema/nodes/rule.js +9 -1
  123. package/dist/esm/next-schema/nodes/tableNodes.js +17 -0
  124. package/dist/esm/schema/default-schema.js +1 -1
  125. package/dist/esm/schema/index.js +1 -1
  126. package/dist/esm/schema/nodes/block-card.js +47 -0
  127. package/dist/esm/schema/nodes/blockquote.js +19 -1
  128. package/dist/esm/schema/nodes/bullet-list.js +19 -0
  129. package/dist/esm/schema/nodes/caption.js +19 -0
  130. package/dist/esm/schema/nodes/code-block.js +71 -1
  131. package/dist/esm/schema/nodes/date.js +21 -0
  132. package/dist/esm/schema/nodes/embed-card.js +35 -0
  133. package/dist/esm/schema/nodes/emoji.js +71 -0
  134. package/dist/esm/schema/nodes/expand.js +55 -0
  135. package/dist/esm/schema/nodes/hard-break.js +17 -0
  136. package/dist/esm/schema/nodes/index.js +20 -20
  137. package/dist/esm/schema/nodes/inline-card.js +45 -0
  138. package/dist/esm/schema/nodes/layout-column.js +36 -0
  139. package/dist/esm/schema/nodes/layout-section.js +30 -0
  140. package/dist/esm/schema/nodes/list-item.js +33 -0
  141. package/dist/esm/schema/nodes/media-inline.js +10 -1
  142. package/dist/esm/schema/nodes/media-single.js +21 -1
  143. package/dist/esm/schema/nodes/media.js +19 -3
  144. package/dist/esm/schema/nodes/nested-expand.js +32 -6
  145. package/dist/esm/schema/nodes/ordered-list.js +53 -2
  146. package/dist/esm/schema/nodes/panel.js +12 -4
  147. package/dist/esm/schema/nodes/placeholder.js +23 -0
  148. package/dist/esm/schema/nodes/rule.js +17 -0
  149. package/dist/esm/schema/nodes/tableNodes.js +68 -5
  150. package/dist/esm/validator-schema/generated/validatorSpec.js +159 -0
  151. package/dist/json-schema/v1/full.json +140 -2
  152. package/dist/json-schema/v1/stage-0.json +152 -2
  153. package/dist/types/index.d.ts +2 -2
  154. package/dist/types/next-schema/generated/nodeTypes.d.ts +72 -0
  155. package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +7 -0
  156. package/dist/types/next-schema/groups/tableCellContentPseudoGroup.d.ts +7 -0
  157. package/dist/types/next-schema/nodes/blockquote.d.ts +7 -0
  158. package/dist/types/next-schema/nodes/layoutSection.d.ts +5 -0
  159. package/dist/types/schema/index.d.ts +1 -1
  160. package/dist/types/schema/nodes/block-card.d.ts +4 -0
  161. package/dist/types/schema/nodes/blockquote.d.ts +4 -0
  162. package/dist/types/schema/nodes/bullet-list.d.ts +1 -0
  163. package/dist/types/schema/nodes/caption.d.ts +4 -0
  164. package/dist/types/schema/nodes/code-block.d.ts +2 -0
  165. package/dist/types/schema/nodes/date.d.ts +2 -0
  166. package/dist/types/schema/nodes/embed-card.d.ts +2 -0
  167. package/dist/types/schema/nodes/emoji.d.ts +2 -0
  168. package/dist/types/schema/nodes/expand.d.ts +2 -0
  169. package/dist/types/schema/nodes/hard-break.d.ts +2 -0
  170. package/dist/types/schema/nodes/index.d.ts +20 -20
  171. package/dist/types/schema/nodes/inline-card.d.ts +1 -0
  172. package/dist/types/schema/nodes/layout-column.d.ts +2 -0
  173. package/dist/types/schema/nodes/layout-section.d.ts +4 -0
  174. package/dist/types/schema/nodes/list-item.d.ts +2 -0
  175. package/dist/types/schema/nodes/media-inline.d.ts +1 -0
  176. package/dist/types/schema/nodes/media-single.d.ts +3 -1
  177. package/dist/types/schema/nodes/media.d.ts +3 -1
  178. package/dist/types/schema/nodes/nested-expand.d.ts +2 -0
  179. package/dist/types/schema/nodes/ordered-list.d.ts +2 -0
  180. package/dist/types/schema/nodes/panel.d.ts +2 -0
  181. package/dist/types/schema/nodes/placeholder.d.ts +2 -0
  182. package/dist/types/schema/nodes/rule.d.ts +4 -0
  183. package/dist/types/schema/nodes/tableNodes.d.ts +6 -0
  184. package/dist/types/schema/nodes/types/list.d.ts +7 -0
  185. package/dist/types/schema/nodes/types/rich-media-common.d.ts +1 -0
  186. package/dist/types/validator-schema/generated/validatorSpec.d.ts +159 -0
  187. package/json-schema/v1/full.json +140 -2
  188. package/json-schema/v1/stage-0.json +152 -2
  189. package/package.json +2 -2
  190. package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +1 -0
@@ -1,39 +1,39 @@
1
- export { expandWithNestedExpand, toJSON as expandToJSON } from './expand';
1
+ export { expandWithNestedExpand, expandWithNestedExpandLocalId, toJSON as expandToJSON, } from './expand';
2
2
  export type { ExpandDefinition } from './expand';
3
3
  export { confluenceJiraIssue } from './confluence-jira-issue';
4
4
  export { confluenceUnsupportedBlock } from './confluence-unsupported-block';
5
5
  export { confluenceUnsupportedInline } from './confluence-unsupported-inline';
6
6
  export { doc } from './doc';
7
7
  export type { DocNode } from './doc';
8
- export { blockquote, extendedBlockquote } from './blockquote';
8
+ export { blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, } from './blockquote';
9
9
  export type { BlockQuoteDefinition } from './blockquote';
10
- export { bulletList, bulletListSelector } from './bullet-list';
10
+ export { bulletList, bulletListSelector, bulletListWithLocalId, } from './bullet-list';
11
11
  export type { BulletListDefinition } from './types/list';
12
- export { codeBlock, toJSON as codeBlockToJSON } from './code-block';
12
+ export { codeBlock, codeBlockWithLocalId, toJSON as codeBlockToJSON, } from './code-block';
13
13
  export type { CodeBlockDefinition, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockWithMarksDefinition, } from './code-block';
14
- export { hardBreak } from './hard-break';
14
+ export { hardBreak, hardBreakWithLocalId } from './hard-break';
15
15
  export type { HardBreakDefinition } from './hard-break';
16
16
  export { heading } from './heading';
17
17
  export type { HeadingDefinition, HeadingBaseDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, } from './heading';
18
- export { rule } from './rule';
18
+ export { rule, ruleWithLocalId } from './rule';
19
19
  export type { RuleDefinition } from './rule';
20
- export { orderedList, orderedListSelector, orderedListWithOrder, } from './ordered-list';
20
+ export { orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, } from './ordered-list';
21
21
  export type { OrderedListDefinition } from './types/list';
22
22
  export { paragraph } from './paragraph';
23
23
  export type { ParagraphDefinition, ParagraphBaseDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, } from './paragraph';
24
- export { emoji } from './emoji';
24
+ export { emoji, emojiWithLocalId } from './emoji';
25
25
  export type { EmojiAttributes, EmojiDefinition } from './emoji';
26
26
  export { image } from './image';
27
27
  export { mention, toJSON as mentionToJSON } from './mention';
28
28
  export type { MentionAttributes, UserType as MentionUserType, MentionDefinition, } from './mention';
29
29
  export { listItem, listItemWithDecisionStage0 } from './list-item';
30
30
  export type { ListItemArray, ListItemDefinition } from './types/list';
31
- export { extendedPanel, PanelType } from './panel';
31
+ export { extendedPanel, extendedPanelWithLocalId, PanelType } from './panel';
32
32
  export type { PanelAttributes, PanelDefinition } from './panel';
33
33
  export { text } from './text';
34
34
  export type { TextDefinition } from './text';
35
35
  export { default as unknownBlock } from './unknown-block';
36
- export { caption } from './caption';
36
+ export { caption, captionWithLocalId } from './caption';
37
37
  export type { CaptionDefinition } from './caption';
38
38
  export { media, copyPrivateAttributes as copyPrivateMediaAttributes, toJSON as mediaToJSON, } from './media';
39
39
  export type { MediaType, MediaBaseAttributes, MediaAttributes, ExternalMediaAttributes, DisplayType as MediaDisplayType, MediaDefinition, MediaADFAttrs, } from './media';
@@ -41,9 +41,9 @@ export { mediaGroup } from './media-group';
41
41
  export { mediaInline } from './media-inline';
42
42
  export type { MediaInlineAttributes, MediaInlineDefinition, } from './media-inline';
43
43
  export type { MediaGroupDefinition } from './media-group';
44
- export { mediaSingle, mediaSingleSpec, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, toJSON as mediaSingleToJSON, } from './media-single';
44
+ export { mediaSingle, mediaSingleSpec, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, toJSON as mediaSingleToJSON, } from './media-single';
45
45
  export type { MediaSingleDefinition } from './media-single';
46
- export { table, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableStage0, tableWithCustomWidth, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundBorderColor, tableBackgroundColorNames, getCellAttrs, getCellDomAttrs, tablePrefixSelector, tableCellSelector, tableHeaderSelector, tableCellContentWrapperSelector, tableCellContentDomSelector, } from './tableNodes';
46
+ export { table, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableStage0, tableWithCustomWidth, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundBorderColor, tableBackgroundColorNames, getCellAttrs, getCellDomAttrs, tablePrefixSelector, tableCellSelector, tableHeaderSelector, tableCellContentWrapperSelector, tableCellContentDomSelector, } from './tableNodes';
47
47
  export type { DisplayMode as TableDisplayMode, TableAttributes, CellAttributes, Layout as TableLayout, TableDefinition, TableCell as TableCellDefinition, TableHeader as TableHeaderDefinition, TableRow as TableRowDefinition, TableWithNestedTableDefinition, TableRowWithNestedTableDefinition, TableCellWithNestedTableDefinition, TableHeaderWithNestedTableDefinition, CellDomAttrs, } from './tableNodes';
48
48
  export { decisionList, decisionListSelector } from './decision-list';
49
49
  export type { DecisionListDefinition } from './decision-list';
@@ -53,23 +53,23 @@ export { taskList, taskListSelector } from './task-list';
53
53
  export type { TaskListDefinition, TaskListContent } from './task-list';
54
54
  export { taskItem } from './task-item';
55
55
  export type { TaskItemDefinition } from './task-item';
56
- export { date } from './date';
56
+ export { date, dateWithLocalId } from './date';
57
57
  export type { DateDefinition } from './date';
58
- export { placeholder } from './placeholder';
58
+ export { placeholder, placeholderWithLocalId } from './placeholder';
59
59
  export type { PlaceholderDefinition } from './placeholder';
60
- export { layoutSection, layoutSectionWithSingleColumn } from './layout-section';
60
+ export { layoutSection, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, } from './layout-section';
61
61
  export type { LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, } from './layout-section';
62
- export { layoutColumn } from './layout-column';
62
+ export { layoutColumn, layoutColumnWithLocalId } from './layout-column';
63
63
  export type { LayoutColumnDefinition } from './layout-column';
64
- export { inlineCard } from './inline-card';
64
+ export { inlineCard, inlineCardWithLocalId } from './inline-card';
65
65
  export type { InlineCardDefinition } from './inline-card';
66
- export { blockCard } from './block-card';
66
+ export { blockCard, blockCardWithLocalId } from './block-card';
67
67
  export type { UrlType, DataType, DatasourceAttributes, DatasourceAttributeProperties, CardAttributes, BlockCardDefinition, } from './block-card';
68
68
  export { unsupportedBlock } from './unsupported-block';
69
69
  export { unsupportedInline } from './unsupported-inline';
70
70
  export { status } from './status';
71
71
  export type { StatusDefinition } from './status';
72
- export { nestedExpand } from './nested-expand';
72
+ export { nestedExpand, nestedExpandWithLocalId } from './nested-expand';
73
73
  export type { NestedExpandDefinition } from './nested-expand';
74
74
  export type { NoMark } from './types/mark';
75
75
  export type { MarksObject } from './types/mark';
@@ -81,7 +81,7 @@ export type { InlineFormattedText } from './types/inline-content';
81
81
  export type { Inline } from './types/inline-content';
82
82
  export type { NestedExpandContent } from './nested-expand';
83
83
  export type { Layout as ExtensionLayout } from './types/extensions';
84
- export { embedCard } from './embed-card';
84
+ export { embedCard, embedCardWithLocalId } from './embed-card';
85
85
  export type { EmbedCardDefinition, EmbedCardAttributes } from './embed-card';
86
86
  export type { RichMediaAttributes, ExtendedMediaAttributes, Layout as RichMediaLayout, } from './types/rich-media-common';
87
87
  export { extension } from './extension';
@@ -12,3 +12,4 @@ export interface InlineCardDefinition {
12
12
  marks?: Array<AnnotationMarkDefinition>;
13
13
  }
14
14
  export declare const inlineCard: import("prosemirror-model").NodeSpec;
15
+ export declare const inlineCardWithLocalId: import("prosemirror-model").NodeSpec;
@@ -10,6 +10,7 @@ export interface LayoutColumnDefinition {
10
10
  * @maximum 100
11
11
  */
12
12
  width: number;
13
+ localId?: string;
13
14
  };
14
15
  /**
15
16
  * @minItems 1
@@ -18,3 +19,4 @@ export interface LayoutColumnDefinition {
18
19
  content: Array<BlockContent>;
19
20
  }
20
21
  export declare const layoutColumn: import("prosemirror-model").NodeSpec;
22
+ export declare const layoutColumnWithLocalId: import("prosemirror-model").NodeSpec;
@@ -7,6 +7,9 @@ export type LayoutSectionBaseDefinition = {
7
7
  type: 'layoutSection';
8
8
  marks?: Array<BreakoutMarkDefinition>;
9
9
  content: Array<LayoutColumnDefinition>;
10
+ attrs?: {
11
+ localId?: string;
12
+ };
10
13
  };
11
14
  /**
12
15
  * Need duplicate `type` and `marks` to make both validator and json-schema satisfied
@@ -42,3 +45,4 @@ export type LayoutSectionDefinition = LayoutSectionFullDefinition | LayoutSectio
42
45
  export declare const layoutSection: import("prosemirror-model").NodeSpec;
43
46
  export declare const layoutSectionFull: import("prosemirror-model").NodeSpec;
44
47
  export declare const layoutSectionWithSingleColumn: import("prosemirror-model").NodeSpec;
48
+ export declare const layoutSectionWithSingleColumnLocalId: import("prosemirror-model").NodeSpec;
@@ -3,8 +3,10 @@
3
3
  * @description this node allows task-list to be nested inside list-item
4
4
  */
5
5
  export declare const listItem: import("prosemirror-model").NodeSpec;
6
+ export declare const listItemWithLocalId: import("prosemirror-model").NodeSpec;
6
7
  /**
7
8
  * @name list_item_with_decision_stage0
8
9
  * @description this node allows decisions to be nested inside list-item
9
10
  */
10
11
  export declare const listItemWithDecisionStage0: import("prosemirror-model").NodeSpec;
12
+ export declare const listItemWithNestedDecisionAndLocalIdStage0: import("prosemirror-model").NodeSpec;
@@ -17,3 +17,4 @@ export interface MediaInlineDefinition {
17
17
  marks?: Array<LinkDefinition | BorderMarkDefinition | AnnotationMarkDefinition>;
18
18
  }
19
19
  export declare const mediaInline: NodeSpec;
20
+ export declare const mediaInlineWithLocalId: NodeSpec;
@@ -51,14 +51,16 @@ export declare const defaultAttrs: {
51
51
  default: string;
52
52
  };
53
53
  };
54
- export declare const mediaSingleSpec: ({ withCaption, withExtendedWidthTypes, }: {
54
+ export declare const mediaSingleSpec: ({ withCaption, withExtendedWidthTypes, generateLocalId, }: {
55
55
  withCaption?: boolean | undefined;
56
56
  withExtendedWidthTypes?: boolean | undefined;
57
+ generateLocalId?: boolean | undefined;
57
58
  }) => NodeSpec;
58
59
  export declare const mediaSingle: NodeSpec;
59
60
  export declare const mediaSingleWithCaption: NodeSpec;
60
61
  export declare const mediaSingleWithWidthType: NodeSpec;
61
62
  export declare const mediaSingleFull: NodeSpec;
63
+ export declare const mediaSingleFullWithLocalId: NodeSpec;
62
64
  export declare const toJSON: (node: PMNode) => {
63
65
  attrs: any;
64
66
  };
@@ -40,6 +40,7 @@ export interface MediaBaseAttributes {
40
40
  __contextId?: string | null;
41
41
  __mediaTraceId?: string | null;
42
42
  __external?: boolean;
43
+ localId?: string;
43
44
  }
44
45
  export interface MediaAttributes extends MediaBaseAttributes {
45
46
  type: 'file' | 'link';
@@ -59,8 +60,9 @@ export declare const defaultAttrs: {
59
60
  export interface MutableMediaAttributes extends MediaAttributes {
60
61
  [key: string]: string | number | undefined | null | boolean;
61
62
  }
62
- export declare const createMediaSpec: (attributes: Partial<NodeSpec["attrs"]>, inline?: boolean) => NodeSpec;
63
+ export declare const createMediaSpec: (attributes: Partial<NodeSpec["attrs"]>, inline?: boolean, generateLocalId?: boolean) => NodeSpec;
63
64
  export declare const media: NodeSpec;
65
+ export declare const mediaWithLocalId: NodeSpec;
64
66
  export declare const camelCaseToKebabCase: (str: string) => string;
65
67
  export declare const copyPrivateAttributes: (from: Record<string, any>, to: Record<string, any>, map?: ((str: string) => string) | undefined) => void;
66
68
  export declare const toJSON: (node: PMNode) => {
@@ -24,6 +24,7 @@ export interface NestedExpandBaseDefinition {
24
24
  attrs: {
25
25
  title?: string;
26
26
  __expanded?: boolean;
27
+ localId?: string;
27
28
  };
28
29
  content: NestedExpandContent;
29
30
  }
@@ -36,3 +37,4 @@ export type NestedExpandDefinition = NestedExpandBaseDefinition & NoMark;
36
37
  * @description an expand that can be nested (eg. inside table, layout).
37
38
  */
38
39
  export declare const nestedExpand: import("prosemirror-model").NodeSpec;
40
+ export declare const nestedExpandWithLocalId: import("prosemirror-model").NodeSpec;
@@ -1,3 +1,5 @@
1
1
  export declare const orderedListSelector = ".ak-ol";
2
2
  export declare const orderedList: import("prosemirror-model").NodeSpec;
3
+ export declare const orderedListWithLocalId: import("prosemirror-model").NodeSpec;
3
4
  export declare const orderedListWithOrder: import("prosemirror-model").NodeSpec;
5
+ export declare const orderedListWithOrderAndLocalId: import("prosemirror-model").NodeSpec;
@@ -24,6 +24,7 @@ export interface PanelAttributes {
24
24
  panelIconId?: string;
25
25
  panelIconText?: string;
26
26
  panelColor?: string;
27
+ localId?: string;
27
28
  }
28
29
  /**
29
30
  * @name panel_node
@@ -47,3 +48,4 @@ export interface DOMAttributes {
47
48
  * addition to content allowed inside panel
48
49
  */
49
50
  export declare const extendedPanel: (allowCustomPanel: boolean) => import("prosemirror-model").NodeSpec;
51
+ export declare const extendedPanelWithLocalId: (allowCustomPanel: boolean) => import("prosemirror-model").NodeSpec;
@@ -5,6 +5,8 @@ export interface PlaceholderDefinition {
5
5
  type: 'placeholder';
6
6
  attrs: {
7
7
  text: string;
8
+ localId?: string;
8
9
  };
9
10
  }
10
11
  export declare const placeholder: import("prosemirror-model").NodeSpec;
12
+ export declare const placeholderWithLocalId: import("prosemirror-model").NodeSpec;
@@ -3,5 +3,9 @@
3
3
  */
4
4
  export interface RuleDefinition {
5
5
  type: 'rule';
6
+ attrs?: {
7
+ localId?: string;
8
+ };
6
9
  }
7
10
  export declare const rule: import("prosemirror-model").NodeSpec;
11
+ export declare const ruleWithLocalId: import("prosemirror-model").NodeSpec;
@@ -21,6 +21,7 @@ export interface CellAttributes {
21
21
  rowspan?: number;
22
22
  colwidth?: number[];
23
23
  background?: string;
24
+ localId?: string;
24
25
  }
25
26
  export declare const tablePrefixSelector = "pm-table";
26
27
  export declare const tableCellSelector = "pm-table-cell-content-wrap";
@@ -32,6 +33,7 @@ export declare const getCellAttrs: (dom: HTMLElement, defaultValues?: CellAttrib
32
33
  rowspan: number;
33
34
  colwidth: number[] | null;
34
35
  background: string | null;
36
+ localId?: string;
35
37
  };
36
38
  export type CellDomAttrs = {
37
39
  colspan?: string;
@@ -41,6 +43,7 @@ export type CellDomAttrs = {
41
43
  'data-colwidth'?: string;
42
44
  'data-cell-background'?: string;
43
45
  class?: string;
46
+ 'data-local-id'?: string;
44
47
  };
45
48
  export declare const setGlobalTheme: (theme: string) => void;
46
49
  /**
@@ -149,3 +152,6 @@ export declare const tableWithNestedTable: import("prosemirror-model").NodeSpec;
149
152
  export declare const tableRowWithNestedTable: import("prosemirror-model").NodeSpec;
150
153
  export declare const tableCellWithNestedTable: import("prosemirror-model").NodeSpec;
151
154
  export declare const tableHeaderWithNestedTable: import("prosemirror-model").NodeSpec;
155
+ export declare const tableRowWithLocalId: import("prosemirror-model").NodeSpec;
156
+ export declare const tableCellWithLocalId: import("prosemirror-model").NodeSpec;
157
+ export declare const tableHeaderWithLocalId: import("prosemirror-model").NodeSpec;
@@ -15,6 +15,9 @@ export interface ListItemDefinition {
15
15
  * @allowUnsupportedBlock true
16
16
  */
17
17
  content: ListItemArray;
18
+ attrs?: {
19
+ localId?: string;
20
+ };
18
21
  }
19
22
  /**
20
23
  * @name bulletList_node
@@ -25,6 +28,9 @@ export interface BulletListDefinition {
25
28
  * @minItems 1
26
29
  */
27
30
  content: Array<ListItemDefinition>;
31
+ attrs?: {
32
+ localId?: string;
33
+ };
28
34
  }
29
35
  /**
30
36
  * @name orderedList_node
@@ -40,5 +46,6 @@ export interface OrderedListDefinition {
40
46
  * @minimum 0
41
47
  */
42
48
  order?: number;
49
+ localId?: string;
43
50
  };
44
51
  }
@@ -6,6 +6,7 @@ export interface RichMediaAttributes {
6
6
  */
7
7
  width?: number;
8
8
  layout: Layout;
9
+ localId?: string;
9
10
  }
10
11
  export interface OptionalRichMediaAttributes {
11
12
  width?: number;