@atlaskit/adf-schema 29.1.1 → 29.1.2

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,11 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 29.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 8f56e32: ADFEXP-524: move code into root index file
8
+
3
9
  ## 29.1.1
4
10
 
5
11
  ### Patch Changes
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
@@ -346,7 +345,6 @@ Object.defineProperty(exports, "listItem", {
346
345
  return _nodes.listItem;
347
346
  }
348
347
  });
349
- exports.marks = void 0;
350
348
  Object.defineProperty(exports, "media", {
351
349
  enumerable: true,
352
350
  get: function get() {
@@ -425,7 +423,6 @@ Object.defineProperty(exports, "nestedExpand", {
425
423
  return _nodes.nestedExpand;
426
424
  }
427
425
  });
428
- exports.nodes = void 0;
429
426
  Object.defineProperty(exports, "orderedList", {
430
427
  enumerable: true,
431
428
  get: function get() {
@@ -672,21 +669,8 @@ Object.defineProperty(exports, "unsupportedNodeTypesForMediaCards", {
672
669
  return _unsupported.unsupportedNodeTypesForMediaCards;
673
670
  }
674
671
  });
675
- var _fs = _interopRequireDefault(require("fs"));
676
- var _path = _interopRequireDefault(require("path"));
677
672
  var _nodes = require("./nodes");
678
673
  var _marks = require("./marks");
679
674
  var _unsupported = require("./unsupported");
680
675
  var _inlineNodes = require("./inline-nodes");
681
- var _createSchema = require("./create-schema");
682
- var buildFilesList = function buildFilesList(dirPath) {
683
- return _fs.default.readdirSync(dirPath).filter(function (node) {
684
- return !node.startsWith('.') && node !== 'index';
685
- }).map(function (node) {
686
- return _path.default.basename(node, _path.default.extname(node));
687
- });
688
- };
689
- var nodes = buildFilesList(_path.default.join(__dirname, 'nodes'));
690
- exports.nodes = nodes;
691
- var marks = buildFilesList(_path.default.join(__dirname, 'marks'));
692
- exports.marks = marks;
676
+ var _createSchema = require("./create-schema");
@@ -1,12 +1,6 @@
1
- import fs from 'fs';
2
- import path from 'path';
3
1
  export { PanelType, blockCard, blockquote, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline } from './nodes';
4
2
  export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
5
3
  colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette } from './marks';
6
4
  export { unsupportedNodeTypesForMediaCards } from './unsupported';
7
5
  export { inlineNodes } from './inline-nodes';
8
- export { sanitizeNodes, createSchema } from './create-schema';
9
- const buildFilesList = dirPath => fs.readdirSync(dirPath).filter(node => !node.startsWith('.') && node !== 'index').map(node => path.basename(node, path.extname(node)));
10
- const nodes = buildFilesList(path.join(__dirname, 'nodes'));
11
- const marks = buildFilesList(path.join(__dirname, 'marks'));
12
- export { nodes, marks };
6
+ export { sanitizeNodes, createSchema } from './create-schema';
@@ -1,18 +1,6 @@
1
- import fs from 'fs';
2
- import path from 'path';
3
1
  export { PanelType, blockCard, blockquote, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline } from './nodes';
4
2
  export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
5
3
  colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette } from './marks';
6
4
  export { unsupportedNodeTypesForMediaCards } from './unsupported';
7
5
  export { inlineNodes } from './inline-nodes';
8
- export { sanitizeNodes, createSchema } from './create-schema';
9
- var buildFilesList = function buildFilesList(dirPath) {
10
- return fs.readdirSync(dirPath).filter(function (node) {
11
- return !node.startsWith('.') && node !== 'index';
12
- }).map(function (node) {
13
- return path.basename(node, path.extname(node));
14
- });
15
- };
16
- var nodes = buildFilesList(path.join(__dirname, 'nodes'));
17
- var marks = buildFilesList(path.join(__dirname, 'marks'));
18
- export { nodes, marks };
6
+ export { sanitizeNodes, createSchema } from './create-schema';
@@ -7,6 +7,3 @@ export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttrib
7
7
  export { unsupportedNodeTypesForMediaCards } from './unsupported';
8
8
  export { inlineNodes } from './inline-nodes';
9
9
  export { sanitizeNodes, createSchema } from './create-schema';
10
- declare const nodes: string[];
11
- declare const marks: string[];
12
- export { nodes, marks };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "29.1.1",
3
+ "version": "29.1.2",
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/"