@atlaskit/adf-schema 52.12.0 → 52.13.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 52.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`534d05cc607cb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/534d05cc607cb) -
8
+ Add extendedPanelC1 and extendedPanelC1WithLocalId factory wrappers so allowCustomPanel and
9
+ generateLocalId propagate correctly into panel_c1 node specs. Register panel_c1 as a built-in node
10
+ in createSchema and include it in the default schema so consumers reading
11
+ defaultSchema.nodes.panel_c1 see a real NodeType (experiment-gated feature behaviour is unchanged
12
+ — table-in-panel is still controlled by platform_editor_nest_table_in_panel).
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 52.12.0
4
19
 
5
20
  ### Minor Changes
@@ -90,6 +90,9 @@ var nodesInOrder = [{
90
90
  }, {
91
91
  name: 'panel',
92
92
  spec: (0, _nodes.extendedPanel)(true)
93
+ }, {
94
+ name: 'panel_c1',
95
+ spec: (0, _nodes.extendedPanelC1)(true)
93
96
  }, {
94
97
  name: 'rule',
95
98
  spec: _nodes.rule
@@ -10,7 +10,7 @@ var _nodes = require("./nodes");
10
10
  var _createSchema = require("./create-schema");
11
11
  var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
12
12
  var defaultSchemaConfig = {
13
- nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'rule', 'image', 'caption', 'mention', 'media', 'mediaGroup', 'mediaSingle', 'mediaInline', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'confluenceJiraIssue', 'expand', 'nestedExpand', 'extension', 'inlineExtension', 'bodiedExtension', 'hardBreak', 'emoji', 'table', 'tableCell', 'tableHeader', 'tableRow', 'decisionList', 'decisionItem', 'taskList', 'taskItem', 'blockTaskItem', 'unknownBlock', 'date', 'status', 'placeholder', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard', 'syncBlock', 'bodiedSyncBlock', 'unsupportedBlock', 'unsupportedInline'],
13
+ nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'panel_c1', 'rule', 'image', 'caption', 'mention', 'media', 'mediaGroup', 'mediaSingle', 'mediaInline', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'confluenceJiraIssue', 'expand', 'nestedExpand', 'extension', 'inlineExtension', 'bodiedExtension', 'hardBreak', 'emoji', 'table', 'tableCell', 'tableHeader', 'tableRow', 'decisionList', 'decisionItem', 'taskList', 'taskItem', 'blockTaskItem', 'unknownBlock', 'date', 'status', 'placeholder', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard', 'syncBlock', 'bodiedSyncBlock', 'unsupportedBlock', 'unsupportedInline'],
14
14
  marks: ['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'code', 'textColor', 'backgroundColor', 'confluenceInlineComment', 'breakout', 'alignment', 'indentation', 'annotation', 'fontSize', 'dataConsumer', 'border', 'unsupportedMark', 'unsupportedNodeAttribute', 'typeAheadQuery',
15
15
  // https://product-fabric.atlassian.net/browse/ED-10214,
16
16
  'fragment']
@@ -220,6 +220,18 @@ Object.defineProperty(exports, "extendedPanel", {
220
220
  return _panel.extendedPanel;
221
221
  }
222
222
  });
223
+ Object.defineProperty(exports, "extendedPanelC1", {
224
+ enumerable: true,
225
+ get: function get() {
226
+ return _panel.extendedPanelC1;
227
+ }
228
+ });
229
+ Object.defineProperty(exports, "extendedPanelC1WithLocalId", {
230
+ enumerable: true,
231
+ get: function get() {
232
+ return _panel.extendedPanelC1WithLocalId;
233
+ }
234
+ });
223
235
  Object.defineProperty(exports, "extendedPanelWithLocalId", {
224
236
  enumerable: true,
225
237
  get: function get() {
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.extendedPanelWithLocalId = exports.extendedPanel = exports.PanelType = void 0;
7
+ exports.extendedPanelWithLocalId = exports.extendedPanelC1WithLocalId = exports.extendedPanelC1 = exports.extendedPanel = exports.PanelType = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _nodeTypes = require("../../next-schema/generated/nodeTypes");
10
10
  var _uuid = require("../../utils/uuid");
@@ -79,7 +79,8 @@ var createPanelNodeSpecOptions = function createPanelNodeSpecOptions(allowCustom
79
79
 
80
80
  /**
81
81
  * @name extended_panel
82
- * @description it allows more content to be nested as compared to panel node.
82
+ *
83
+ * it allows more content to be nested as compared to panel node.
83
84
  * Specifically, it allows Media, action, code-block, rule and decision nodes in
84
85
  * addition to content allowed inside panel
85
86
  */
@@ -88,4 +89,19 @@ var extendedPanel = exports.extendedPanel = function extendedPanel(allowCustomPa
88
89
  };
89
90
  var extendedPanelWithLocalId = exports.extendedPanelWithLocalId = function extendedPanelWithLocalId(allowCustomPanel) {
90
91
  return (0, _nodeTypes.panel)(createPanelNodeSpecOptions(allowCustomPanel, true));
92
+ };
93
+
94
+ /**
95
+ * @name extended_panel_c1
96
+ *
97
+ * Depth-level-1 variant of panel. Allows all standard panel content
98
+ * plus table nodes. Derives its parseDOM/toDOM behaviour from the same
99
+ * createPanelNodeSpecOptions helper as extendedPanel so that allowCustomPanel
100
+ * and generateLocalId propagate identically.
101
+ */
102
+ var extendedPanelC1 = exports.extendedPanelC1 = function extendedPanelC1(allowCustomPanel) {
103
+ return (0, _nodeTypes.panelC1)(createPanelNodeSpecOptions(allowCustomPanel));
104
+ };
105
+ var extendedPanelC1WithLocalId = exports.extendedPanelC1WithLocalId = function extendedPanelC1WithLocalId(allowCustomPanel) {
106
+ return (0, _nodeTypes.panelC1)(createPanelNodeSpecOptions(allowCustomPanel, true));
91
107
  };
@@ -2,7 +2,7 @@ import { Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import { COLOR, FONT_STYLE, SEARCH_QUERY, LINK } from './groups';
3
3
  import { sanitizeNodes } from './sanitizeNodes';
4
4
  import { link, em, strong, textColor, strike, subsup, underline, code, typeAheadQuery, confluenceInlineComment, fontSize, breakout, alignment, indentation, annotation, unsupportedMark, unsupportedNodeAttribute, dataConsumer, fragment, border, backgroundColor } from './marks';
5
- import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc, paragraph, text, bulletList, orderedListWithOrder, listItem, heading, codeBlock, extendedPanel, rule, image, mention, media, mediaInline, mediaSingleFull, mediaGroup, hardBreak, emoji, table, tableCell, tableHeader, tableRow, decisionList, decisionItem, taskList, taskItem, blockTaskItem, unknownBlock, extension, inlineExtension, bodiedExtension, multiBodiedExtension, extensionFrame, date, placeholder, layoutSection, layoutColumn, inlineCard, blockCard, unsupportedBlock, unsupportedInline, status, expandWithNestedExpand, nestedExpand, embedCard, caption, extendedBlockquote, syncBlock, bodiedSyncBlock } from './nodes';
5
+ import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc, paragraph, text, bulletList, orderedListWithOrder, listItem, heading, codeBlock, extendedPanel, extendedPanelC1, rule, image, mention, media, mediaInline, mediaSingleFull, mediaGroup, hardBreak, emoji, table, tableCell, tableHeader, tableRow, decisionList, decisionItem, taskList, taskItem, blockTaskItem, unknownBlock, extension, inlineExtension, bodiedExtension, multiBodiedExtension, extensionFrame, date, placeholder, layoutSection, layoutColumn, inlineCard, blockCard, unsupportedBlock, unsupportedInline, status, expandWithNestedExpand, nestedExpand, embedCard, caption, extendedBlockquote, syncBlock, bodiedSyncBlock } from './nodes';
6
6
  function addItems(builtInItems, config, customSpecs = {}) {
7
7
  if (!config) {
8
8
  return {};
@@ -80,6 +80,9 @@ const nodesInOrder = [{
80
80
  }, {
81
81
  name: 'panel',
82
82
  spec: extendedPanel(true)
83
+ }, {
84
+ name: 'panel_c1',
85
+ spec: extendedPanelC1(true)
83
86
  }, {
84
87
  name: 'rule',
85
88
  spec: rule
@@ -3,7 +3,7 @@ import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, ex
3
3
  import { createSchema } from './create-schema';
4
4
  const getDefaultSchemaConfig = () => {
5
5
  const defaultSchemaConfig = {
6
- nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'rule', 'image', 'caption', 'mention', 'media', 'mediaGroup', 'mediaSingle', 'mediaInline', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'confluenceJiraIssue', 'expand', 'nestedExpand', 'extension', 'inlineExtension', 'bodiedExtension', 'hardBreak', 'emoji', 'table', 'tableCell', 'tableHeader', 'tableRow', 'decisionList', 'decisionItem', 'taskList', 'taskItem', 'blockTaskItem', 'unknownBlock', 'date', 'status', 'placeholder', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard', 'syncBlock', 'bodiedSyncBlock', 'unsupportedBlock', 'unsupportedInline'],
6
+ nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'panel_c1', 'rule', 'image', 'caption', 'mention', 'media', 'mediaGroup', 'mediaSingle', 'mediaInline', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'confluenceJiraIssue', 'expand', 'nestedExpand', 'extension', 'inlineExtension', 'bodiedExtension', 'hardBreak', 'emoji', 'table', 'tableCell', 'tableHeader', 'tableRow', 'decisionList', 'decisionItem', 'taskList', 'taskItem', 'blockTaskItem', 'unknownBlock', 'date', 'status', 'placeholder', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard', 'syncBlock', 'bodiedSyncBlock', 'unsupportedBlock', 'unsupportedInline'],
7
7
  marks: ['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'code', 'textColor', 'backgroundColor', 'confluenceInlineComment', 'breakout', 'alignment', 'indentation', 'annotation', 'fontSize', 'dataConsumer', 'border', 'unsupportedMark', 'unsupportedNodeAttribute', 'typeAheadQuery',
8
8
  // https://product-fabric.atlassian.net/browse/ED-10214,
9
9
  'fragment']
@@ -16,7 +16,7 @@ export { emoji, emojiWithLocalId } from './emoji';
16
16
  export { image } from './image';
17
17
  export { mention, toJSON as mentionToJSON } from './mention';
18
18
  export { listItem, listItemWithLocalId } from './list-item';
19
- export { extendedPanel, extendedPanelWithLocalId, PanelType } from './panel';
19
+ export { extendedPanel, extendedPanelWithLocalId, extendedPanelC1, extendedPanelC1WithLocalId, PanelType } from './panel';
20
20
  export { text } from './text';
21
21
  export { default as unknownBlock } from './unknown-block';
22
22
  export { caption, captionWithLocalId } from './caption';
@@ -1,4 +1,4 @@
1
- import { panel as panelFactory } from '../../next-schema/generated/nodeTypes';
1
+ import { panel as panelFactory, panelC1 as panelC1Factory } from '../../next-schema/generated/nodeTypes';
2
2
  import { uuid } from '../../utils/uuid';
3
3
  export let PanelType = /*#__PURE__*/function (PanelType) {
4
4
  PanelType["INFO"] = "info";
@@ -68,9 +68,21 @@ const createPanelNodeSpecOptions = (allowCustomPanel, generateLocalId) => ({
68
68
 
69
69
  /**
70
70
  * @name extended_panel
71
- * @description it allows more content to be nested as compared to panel node.
71
+ *
72
+ * it allows more content to be nested as compared to panel node.
72
73
  * Specifically, it allows Media, action, code-block, rule and decision nodes in
73
74
  * addition to content allowed inside panel
74
75
  */
75
76
  export const extendedPanel = allowCustomPanel => panelFactory(createPanelNodeSpecOptions(allowCustomPanel));
76
- export const extendedPanelWithLocalId = allowCustomPanel => panelFactory(createPanelNodeSpecOptions(allowCustomPanel, true));
77
+ export const extendedPanelWithLocalId = allowCustomPanel => panelFactory(createPanelNodeSpecOptions(allowCustomPanel, true));
78
+
79
+ /**
80
+ * @name extended_panel_c1
81
+ *
82
+ * Depth-level-1 variant of panel. Allows all standard panel content
83
+ * plus table nodes. Derives its parseDOM/toDOM behaviour from the same
84
+ * createPanelNodeSpecOptions helper as extendedPanel so that allowCustomPanel
85
+ * and generateLocalId propagate identically.
86
+ */
87
+ export const extendedPanelC1 = allowCustomPanel => panelC1Factory(createPanelNodeSpecOptions(allowCustomPanel));
88
+ export const extendedPanelC1WithLocalId = allowCustomPanel => panelC1Factory(createPanelNodeSpecOptions(allowCustomPanel, true));
@@ -2,7 +2,7 @@ import { Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import { COLOR, FONT_STYLE, SEARCH_QUERY, LINK } from './groups';
3
3
  import { sanitizeNodes } from './sanitizeNodes';
4
4
  import { link, em, strong, textColor, strike, subsup, underline, code, typeAheadQuery, confluenceInlineComment, fontSize, breakout, alignment, indentation, annotation, unsupportedMark, unsupportedNodeAttribute, dataConsumer, fragment, border, backgroundColor } from './marks';
5
- import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc, paragraph, text, bulletList, orderedListWithOrder, listItem, heading, codeBlock, extendedPanel, rule, image, mention, media, mediaInline, mediaSingleFull, mediaGroup, hardBreak, emoji, table, tableCell, tableHeader, tableRow, decisionList, decisionItem, taskList, taskItem, blockTaskItem, unknownBlock, extension, inlineExtension, bodiedExtension, multiBodiedExtension, extensionFrame, date, placeholder, layoutSection, layoutColumn, inlineCard, blockCard, unsupportedBlock, unsupportedInline, status, expandWithNestedExpand, nestedExpand, embedCard, caption, extendedBlockquote, syncBlock, bodiedSyncBlock } from './nodes';
5
+ import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc, paragraph, text, bulletList, orderedListWithOrder, listItem, heading, codeBlock, extendedPanel, extendedPanelC1, rule, image, mention, media, mediaInline, mediaSingleFull, mediaGroup, hardBreak, emoji, table, tableCell, tableHeader, tableRow, decisionList, decisionItem, taskList, taskItem, blockTaskItem, unknownBlock, extension, inlineExtension, bodiedExtension, multiBodiedExtension, extensionFrame, date, placeholder, layoutSection, layoutColumn, inlineCard, blockCard, unsupportedBlock, unsupportedInline, status, expandWithNestedExpand, nestedExpand, embedCard, caption, extendedBlockquote, syncBlock, bodiedSyncBlock } from './nodes';
6
6
  function addItems(builtInItems, config) {
7
7
  var customSpecs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
8
8
  if (!config) {
@@ -82,6 +82,9 @@ var nodesInOrder = [{
82
82
  }, {
83
83
  name: 'panel',
84
84
  spec: extendedPanel(true)
85
+ }, {
86
+ name: 'panel_c1',
87
+ spec: extendedPanelC1(true)
85
88
  }, {
86
89
  name: 'rule',
87
90
  spec: rule
@@ -3,7 +3,7 @@ import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, ex
3
3
  import { createSchema } from './create-schema';
4
4
  var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
5
5
  var defaultSchemaConfig = {
6
- nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'rule', 'image', 'caption', 'mention', 'media', 'mediaGroup', 'mediaSingle', 'mediaInline', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'confluenceJiraIssue', 'expand', 'nestedExpand', 'extension', 'inlineExtension', 'bodiedExtension', 'hardBreak', 'emoji', 'table', 'tableCell', 'tableHeader', 'tableRow', 'decisionList', 'decisionItem', 'taskList', 'taskItem', 'blockTaskItem', 'unknownBlock', 'date', 'status', 'placeholder', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard', 'syncBlock', 'bodiedSyncBlock', 'unsupportedBlock', 'unsupportedInline'],
6
+ nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'panel', 'panel_c1', 'rule', 'image', 'caption', 'mention', 'media', 'mediaGroup', 'mediaSingle', 'mediaInline', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'confluenceJiraIssue', 'expand', 'nestedExpand', 'extension', 'inlineExtension', 'bodiedExtension', 'hardBreak', 'emoji', 'table', 'tableCell', 'tableHeader', 'tableRow', 'decisionList', 'decisionItem', 'taskList', 'taskItem', 'blockTaskItem', 'unknownBlock', 'date', 'status', 'placeholder', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard', 'syncBlock', 'bodiedSyncBlock', 'unsupportedBlock', 'unsupportedInline'],
7
7
  marks: ['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'code', 'textColor', 'backgroundColor', 'confluenceInlineComment', 'breakout', 'alignment', 'indentation', 'annotation', 'fontSize', 'dataConsumer', 'border', 'unsupportedMark', 'unsupportedNodeAttribute', 'typeAheadQuery',
8
8
  // https://product-fabric.atlassian.net/browse/ED-10214,
9
9
  'fragment']
@@ -16,7 +16,7 @@ export { emoji, emojiWithLocalId } from './emoji';
16
16
  export { image } from './image';
17
17
  export { mention, toJSON as mentionToJSON } from './mention';
18
18
  export { listItem, listItemWithLocalId } from './list-item';
19
- export { extendedPanel, extendedPanelWithLocalId, PanelType } from './panel';
19
+ export { extendedPanel, extendedPanelWithLocalId, extendedPanelC1, extendedPanelC1WithLocalId, PanelType } from './panel';
20
20
  export { text } from './text';
21
21
  export { default as unknownBlock } from './unknown-block';
22
22
  export { caption, captionWithLocalId } from './caption';
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  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; }
3
3
  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; }
4
- import { panel as panelFactory } from '../../next-schema/generated/nodeTypes';
4
+ import { panel as panelFactory, panelC1 as panelC1Factory } from '../../next-schema/generated/nodeTypes';
5
5
  import { uuid } from '../../utils/uuid';
6
6
  export var PanelType = /*#__PURE__*/function (PanelType) {
7
7
  PanelType["INFO"] = "info";
@@ -74,7 +74,8 @@ var createPanelNodeSpecOptions = function createPanelNodeSpecOptions(allowCustom
74
74
 
75
75
  /**
76
76
  * @name extended_panel
77
- * @description it allows more content to be nested as compared to panel node.
77
+ *
78
+ * it allows more content to be nested as compared to panel node.
78
79
  * Specifically, it allows Media, action, code-block, rule and decision nodes in
79
80
  * addition to content allowed inside panel
80
81
  */
@@ -83,4 +84,19 @@ export var extendedPanel = function extendedPanel(allowCustomPanel) {
83
84
  };
84
85
  export var extendedPanelWithLocalId = function extendedPanelWithLocalId(allowCustomPanel) {
85
86
  return panelFactory(createPanelNodeSpecOptions(allowCustomPanel, true));
87
+ };
88
+
89
+ /**
90
+ * @name extended_panel_c1
91
+ *
92
+ * Depth-level-1 variant of panel. Allows all standard panel content
93
+ * plus table nodes. Derives its parseDOM/toDOM behaviour from the same
94
+ * createPanelNodeSpecOptions helper as extendedPanel so that allowCustomPanel
95
+ * and generateLocalId propagate identically.
96
+ */
97
+ export var extendedPanelC1 = function extendedPanelC1(allowCustomPanel) {
98
+ return panelC1Factory(createPanelNodeSpecOptions(allowCustomPanel));
99
+ };
100
+ export var extendedPanelC1WithLocalId = function extendedPanelC1WithLocalId(allowCustomPanel) {
101
+ return panelC1Factory(createPanelNodeSpecOptions(allowCustomPanel, true));
86
102
  };
@@ -1,7 +1,7 @@
1
1
  import type { MemoizedFn } from 'memoize-one';
2
2
  import type { SchemaConfig } from './create-schema';
3
3
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
4
- type DefaultSchemaNodes = 'doc' | 'paragraph' | 'text' | 'bulletList' | 'orderedList' | 'listItem' | 'heading' | 'blockquote' | 'codeBlock' | 'panel' | 'rule' | 'image' | 'mention' | 'media' | 'caption' | 'mediaGroup' | 'mediaSingle' | 'mediaInline' | 'confluenceUnsupportedBlock' | 'confluenceUnsupportedInline' | 'confluenceJiraIssue' | 'expand' | 'nestedExpand' | 'extension' | 'inlineExtension' | 'bodiedExtension' | 'hardBreak' | 'emoji' | 'table' | 'tableCell' | 'tableHeader' | 'tableRow' | 'decisionList' | 'decisionItem' | 'taskList' | 'taskItem' | 'blockTaskItem' | 'unknownBlock' | 'date' | 'status' | 'placeholder' | 'layoutSection' | 'layoutColumn' | 'inlineCard' | 'blockCard' | 'embedCard' | 'syncBlock' | 'bodiedSyncBlock' | 'unsupportedBlock' | 'unsupportedInline';
4
+ type DefaultSchemaNodes = 'doc' | 'paragraph' | 'text' | 'bulletList' | 'orderedList' | 'listItem' | 'heading' | 'blockquote' | 'codeBlock' | 'panel' | 'panel_c1' | 'rule' | 'image' | 'mention' | 'media' | 'caption' | 'mediaGroup' | 'mediaSingle' | 'mediaInline' | 'confluenceUnsupportedBlock' | 'confluenceUnsupportedInline' | 'confluenceJiraIssue' | 'expand' | 'nestedExpand' | 'extension' | 'inlineExtension' | 'bodiedExtension' | 'hardBreak' | 'emoji' | 'table' | 'tableCell' | 'tableHeader' | 'tableRow' | 'decisionList' | 'decisionItem' | 'taskList' | 'taskItem' | 'blockTaskItem' | 'unknownBlock' | 'date' | 'status' | 'placeholder' | 'layoutSection' | 'layoutColumn' | 'inlineCard' | 'blockCard' | 'embedCard' | 'syncBlock' | 'bodiedSyncBlock' | 'unsupportedBlock' | 'unsupportedInline';
5
5
  type DefaultSchemaMarks = 'link' | 'em' | 'strong' | 'strike' | 'subsup' | 'underline' | 'code' | 'textColor' | 'backgroundColor' | 'confluenceInlineComment' | 'breakout' | 'alignment' | 'indentation' | 'annotation' | 'border' | 'fontSize' | 'unsupportedMark' | 'unsupportedNodeAttribute' | 'typeAheadQuery' | 'dataConsumer' | 'fragment';
6
6
  export declare const defaultSchemaConfig: SchemaConfig<DefaultSchemaNodes, DefaultSchemaMarks>;
7
7
  export declare const getSchemaBasedOnStage: MemoizedFn<(this: any, stage?: any) => Schema<DefaultSchemaNodes, DefaultSchemaMarks>>;
@@ -28,7 +28,7 @@ export { mention, toJSON as mentionToJSON } from './mention';
28
28
  export type { MentionAttributes, UserType as MentionUserType, MentionDefinition } from './mention';
29
29
  export { listItem, listItemWithLocalId } from './list-item';
30
30
  export type { ListItemArray, ListItemDefinition } from './types/list';
31
- export { extendedPanel, extendedPanelWithLocalId, PanelType } from './panel';
31
+ export { extendedPanel, extendedPanelWithLocalId, extendedPanelC1, extendedPanelC1WithLocalId, PanelType, } from './panel';
32
32
  export type { PanelAttributes, PanelDefinition } from './panel';
33
33
  export { text } from './text';
34
34
  export type { TextDefinition } from './text';
@@ -45,9 +45,20 @@ export interface DOMAttributes {
45
45
  }
46
46
  /**
47
47
  * @name extended_panel
48
- * @description it allows more content to be nested as compared to panel node.
48
+ *
49
+ * it allows more content to be nested as compared to panel node.
49
50
  * Specifically, it allows Media, action, code-block, rule and decision nodes in
50
51
  * addition to content allowed inside panel
51
52
  */
52
53
  export declare const extendedPanel: (allowCustomPanel: boolean) => NodeSpec;
53
54
  export declare const extendedPanelWithLocalId: (allowCustomPanel: boolean) => NodeSpec;
55
+ /**
56
+ * @name extended_panel_c1
57
+ *
58
+ * Depth-level-1 variant of panel. Allows all standard panel content
59
+ * plus table nodes. Derives its parseDOM/toDOM behaviour from the same
60
+ * createPanelNodeSpecOptions helper as extendedPanel so that allowCustomPanel
61
+ * and generateLocalId propagate identically.
62
+ */
63
+ export declare const extendedPanelC1: (allowCustomPanel: boolean) => NodeSpec;
64
+ export declare const extendedPanelC1WithLocalId: (allowCustomPanel: boolean) => NodeSpec;
@@ -1,7 +1,7 @@
1
1
  import type { MemoizedFn } from 'memoize-one';
2
2
  import type { SchemaConfig } from './create-schema';
3
3
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
4
- type DefaultSchemaNodes = 'doc' | 'paragraph' | 'text' | 'bulletList' | 'orderedList' | 'listItem' | 'heading' | 'blockquote' | 'codeBlock' | 'panel' | 'rule' | 'image' | 'mention' | 'media' | 'caption' | 'mediaGroup' | 'mediaSingle' | 'mediaInline' | 'confluenceUnsupportedBlock' | 'confluenceUnsupportedInline' | 'confluenceJiraIssue' | 'expand' | 'nestedExpand' | 'extension' | 'inlineExtension' | 'bodiedExtension' | 'hardBreak' | 'emoji' | 'table' | 'tableCell' | 'tableHeader' | 'tableRow' | 'decisionList' | 'decisionItem' | 'taskList' | 'taskItem' | 'blockTaskItem' | 'unknownBlock' | 'date' | 'status' | 'placeholder' | 'layoutSection' | 'layoutColumn' | 'inlineCard' | 'blockCard' | 'embedCard' | 'syncBlock' | 'bodiedSyncBlock' | 'unsupportedBlock' | 'unsupportedInline';
4
+ type DefaultSchemaNodes = 'doc' | 'paragraph' | 'text' | 'bulletList' | 'orderedList' | 'listItem' | 'heading' | 'blockquote' | 'codeBlock' | 'panel' | 'panel_c1' | 'rule' | 'image' | 'mention' | 'media' | 'caption' | 'mediaGroup' | 'mediaSingle' | 'mediaInline' | 'confluenceUnsupportedBlock' | 'confluenceUnsupportedInline' | 'confluenceJiraIssue' | 'expand' | 'nestedExpand' | 'extension' | 'inlineExtension' | 'bodiedExtension' | 'hardBreak' | 'emoji' | 'table' | 'tableCell' | 'tableHeader' | 'tableRow' | 'decisionList' | 'decisionItem' | 'taskList' | 'taskItem' | 'blockTaskItem' | 'unknownBlock' | 'date' | 'status' | 'placeholder' | 'layoutSection' | 'layoutColumn' | 'inlineCard' | 'blockCard' | 'embedCard' | 'syncBlock' | 'bodiedSyncBlock' | 'unsupportedBlock' | 'unsupportedInline';
5
5
  type DefaultSchemaMarks = 'link' | 'em' | 'strong' | 'strike' | 'subsup' | 'underline' | 'code' | 'textColor' | 'backgroundColor' | 'confluenceInlineComment' | 'breakout' | 'alignment' | 'indentation' | 'annotation' | 'border' | 'fontSize' | 'unsupportedMark' | 'unsupportedNodeAttribute' | 'typeAheadQuery' | 'dataConsumer' | 'fragment';
6
6
  export declare const defaultSchemaConfig: SchemaConfig<DefaultSchemaNodes, DefaultSchemaMarks>;
7
7
  export declare const getSchemaBasedOnStage: MemoizedFn<(this: any, stage?: any) => Schema<DefaultSchemaNodes, DefaultSchemaMarks>>;
@@ -28,7 +28,7 @@ export { mention, toJSON as mentionToJSON } from './mention';
28
28
  export type { MentionAttributes, UserType as MentionUserType, MentionDefinition } from './mention';
29
29
  export { listItem, listItemWithLocalId } from './list-item';
30
30
  export type { ListItemArray, ListItemDefinition } from './types/list';
31
- export { extendedPanel, extendedPanelWithLocalId, PanelType } from './panel';
31
+ export { extendedPanel, extendedPanelWithLocalId, extendedPanelC1, extendedPanelC1WithLocalId, PanelType, } from './panel';
32
32
  export type { PanelAttributes, PanelDefinition } from './panel';
33
33
  export { text } from './text';
34
34
  export type { TextDefinition } from './text';
@@ -45,9 +45,20 @@ export interface DOMAttributes {
45
45
  }
46
46
  /**
47
47
  * @name extended_panel
48
- * @description it allows more content to be nested as compared to panel node.
48
+ *
49
+ * it allows more content to be nested as compared to panel node.
49
50
  * Specifically, it allows Media, action, code-block, rule and decision nodes in
50
51
  * addition to content allowed inside panel
51
52
  */
52
53
  export declare const extendedPanel: (allowCustomPanel: boolean) => NodeSpec;
53
54
  export declare const extendedPanelWithLocalId: (allowCustomPanel: boolean) => NodeSpec;
55
+ /**
56
+ * @name extended_panel_c1
57
+ *
58
+ * Depth-level-1 variant of panel. Allows all standard panel content
59
+ * plus table nodes. Derives its parseDOM/toDOM behaviour from the same
60
+ * createPanelNodeSpecOptions helper as extendedPanel so that allowCustomPanel
61
+ * and generateLocalId propagate identically.
62
+ */
63
+ export declare const extendedPanelC1: (allowCustomPanel: boolean) => NodeSpec;
64
+ export declare const extendedPanelC1WithLocalId: (allowCustomPanel: boolean) => NodeSpec;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "52.12.0",
3
+ "version": "52.13.0",
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/"
@@ -40,14 +40,14 @@
40
40
  "@atlaskit/adf-schema-generator": "^2.3.0",
41
41
  "@atlaskit/editor-prosemirror": "^7.3.0",
42
42
  "@atlaskit/platform-feature-flags": "^1.1.0",
43
- "@atlaskit/tmp-editor-statsig": "^81.1.0",
43
+ "@atlaskit/tmp-editor-statsig": "^82.0.0",
44
44
  "@babel/runtime": "^7.0.0",
45
45
  "css-color-names": "0.0.4",
46
46
  "linkify-it": "^3.0.3",
47
47
  "memoize-one": "^6.0.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@atlaskit/codemod-utils": "^4.2.0",
50
+ "@atlaskit/codemod-utils": "^4.3.0",
51
51
  "@atlassian/adf-schema-json": "^1.33.0",
52
52
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
53
53
  "@babel/cli": "^7.20.0",