@atlaskit/adf-schema 31.1.0 → 31.1.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 31.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - b5e7cbb: Remove fs from index
8
+
3
9
  ## 31.1.0
4
10
 
5
11
  ### Minor Changes
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.nodes = exports.marks = void 0;
8
+ var _fs = _interopRequireDefault(require("fs"));
9
+ var _path = _interopRequireDefault(require("path"));
10
+ var buildFilesList = function buildFilesList(dirPath) {
11
+ return _fs.default.readdirSync(dirPath).filter(function (node) {
12
+ return !node.startsWith('.') && !node.startsWith('index');
13
+ }).map(function (node) {
14
+ return _path.default.basename(node, _path.default.extname(node));
15
+ });
16
+ };
17
+ var nodes = buildFilesList(_path.default.join(__dirname, './schema/nodes'));
18
+ exports.nodes = nodes;
19
+ var marks = buildFilesList(_path.default.join(__dirname, './schema/marks'));
20
+ exports.marks = marks;
package/dist/cjs/index.js CHANGED
@@ -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
  });
@@ -688,7 +687,12 @@ Object.defineProperty(exports, "listItem", {
688
687
  return _schema.listItem;
689
688
  }
690
689
  });
691
- exports.marks = void 0;
690
+ Object.defineProperty(exports, "marks", {
691
+ enumerable: true,
692
+ get: function get() {
693
+ return _buildNodesAndMarks.marks;
694
+ }
695
+ });
692
696
  Object.defineProperty(exports, "media", {
693
697
  enumerable: true,
694
698
  get: function get() {
@@ -767,7 +771,12 @@ Object.defineProperty(exports, "nestedExpand", {
767
771
  return _schema.nestedExpand;
768
772
  }
769
773
  });
770
- exports.nodes = void 0;
774
+ Object.defineProperty(exports, "nodes", {
775
+ enumerable: true,
776
+ get: function get() {
777
+ return _buildNodesAndMarks.nodes;
778
+ }
779
+ });
771
780
  Object.defineProperty(exports, "normalizeHexColor", {
772
781
  enumerable: true,
773
782
  get: function get() {
@@ -1038,18 +1047,6 @@ Object.defineProperty(exports, "uuid", {
1038
1047
  return _utils.uuid;
1039
1048
  }
1040
1049
  });
1041
- var _fs = _interopRequireDefault(require("fs"));
1042
- var _path = _interopRequireDefault(require("path"));
1043
1050
  var _schema = require("./schema");
1044
1051
  var _utils = require("./utils");
1045
- var buildFilesList = function buildFilesList(dirPath) {
1046
- return _fs.default.readdirSync(dirPath).filter(function (node) {
1047
- return !node.startsWith('.') && !node.startsWith('index');
1048
- }).map(function (node) {
1049
- return _path.default.basename(node, _path.default.extname(node));
1050
- });
1051
- };
1052
- var nodes = buildFilesList(_path.default.join(__dirname, './schema/nodes'));
1053
- exports.nodes = nodes;
1054
- var marks = buildFilesList(_path.default.join(__dirname, './schema/marks'));
1055
- exports.marks = marks;
1052
+ var _buildNodesAndMarks = require("./buildNodesAndMarks");
@@ -0,0 +1,6 @@
1
+ import fs from 'fs';
2
+ import path from 'path';
3
+ const buildFilesList = dirPath => fs.readdirSync(dirPath).filter(node => !node.startsWith('.') && !node.startsWith('index')).map(node => path.basename(node, path.extname(node)));
4
+ const nodes = buildFilesList(path.join(__dirname, './schema/nodes'));
5
+ const marks = buildFilesList(path.join(__dirname, './schema/marks'));
6
+ export { nodes, marks };
@@ -1,9 +1,4 @@
1
- import fs from 'fs';
2
- import path from 'path';
3
1
  export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
4
2
  colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette } from './schema';
5
3
  export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid } from './utils';
6
- const buildFilesList = dirPath => fs.readdirSync(dirPath).filter(node => !node.startsWith('.') && !node.startsWith('index')).map(node => path.basename(node, path.extname(node)));
7
- const nodes = buildFilesList(path.join(__dirname, './schema/nodes'));
8
- const marks = buildFilesList(path.join(__dirname, './schema/marks'));
9
- export { nodes, marks };
4
+ export { nodes, marks } from './buildNodesAndMarks';
@@ -0,0 +1,12 @@
1
+ import fs from 'fs';
2
+ import path from 'path';
3
+ var buildFilesList = function buildFilesList(dirPath) {
4
+ return fs.readdirSync(dirPath).filter(function (node) {
5
+ return !node.startsWith('.') && !node.startsWith('index');
6
+ }).map(function (node) {
7
+ return path.basename(node, path.extname(node));
8
+ });
9
+ };
10
+ var nodes = buildFilesList(path.join(__dirname, './schema/nodes'));
11
+ var marks = buildFilesList(path.join(__dirname, './schema/marks'));
12
+ export { nodes, marks };
package/dist/esm/index.js CHANGED
@@ -1,15 +1,4 @@
1
- import fs from 'fs';
2
- import path from 'path';
3
1
  export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
4
2
  colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette } from './schema';
5
3
  export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid } from './utils';
6
- var buildFilesList = function buildFilesList(dirPath) {
7
- return fs.readdirSync(dirPath).filter(function (node) {
8
- return !node.startsWith('.') && !node.startsWith('index');
9
- }).map(function (node) {
10
- return path.basename(node, path.extname(node));
11
- });
12
- };
13
- var nodes = buildFilesList(path.join(__dirname, './schema/nodes'));
14
- var marks = buildFilesList(path.join(__dirname, './schema/marks'));
15
- export { nodes, marks };
4
+ export { nodes, marks } from './buildNodesAndMarks';
@@ -0,0 +1,3 @@
1
+ declare const nodes: string[];
2
+ declare const marks: string[];
3
+ export { nodes, marks };
@@ -4,6 +4,4 @@ colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUn
4
4
  export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, FragmentAttributes, FragmentDefinition, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, IndentationMarkAttributes, IndentationMarkDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, LinkAttributes, LinkDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextColorAttributes, TextColorDefinition, TextDefinition, UnderlineDefinition, UrlType, AnnotationId, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, AnnotationDataAttributes, CellDomAttrs, BorderMarkAttributes, BorderMarkDefinition, } from './schema';
5
5
  export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid, } from './utils';
6
6
  export type { Match, NameToEmoji } from './utils';
7
- declare const nodes: string[];
8
- declare const marks: string[];
9
- export { nodes, marks };
7
+ export { nodes, marks } from './buildNodesAndMarks';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "31.1.0",
3
+ "version": "31.1.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/"