@atlaskit/adf-schema 31.1.1 → 32.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.
- package/CHANGELOG.md +14 -0
- package/dist/cjs/index.js +1 -14
- package/dist/es2019/index.js +1 -2
- package/dist/esm/index.js +1 -2
- package/dist/types/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cjs/buildNodesAndMarks.js +0 -20
- package/dist/es2019/buildNodesAndMarks.js +0 -6
- package/dist/esm/buildNodesAndMarks.js +0 -12
- package/dist/types/buildNodesAndMarks.d.ts +0 -3
- package/report.api.md +0 -1921
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 32.0.0
|
4
|
+
|
5
|
+
### Major Changes
|
6
|
+
|
7
|
+
- 9fb5cec: Remove fs use
|
8
|
+
|
9
|
+
## 31.1.2
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- 8b3c47b: Remove api report
|
14
|
+
- Updated dependencies [8b3c47b]
|
15
|
+
- @atlaskit/editor-prosemirror@2.0.1
|
16
|
+
|
3
17
|
## 31.1.1
|
4
18
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
@@ -687,12 +687,6 @@ Object.defineProperty(exports, "listItem", {
|
|
687
687
|
return _schema.listItem;
|
688
688
|
}
|
689
689
|
});
|
690
|
-
Object.defineProperty(exports, "marks", {
|
691
|
-
enumerable: true,
|
692
|
-
get: function get() {
|
693
|
-
return _buildNodesAndMarks.marks;
|
694
|
-
}
|
695
|
-
});
|
696
690
|
Object.defineProperty(exports, "media", {
|
697
691
|
enumerable: true,
|
698
692
|
get: function get() {
|
@@ -771,12 +765,6 @@ Object.defineProperty(exports, "nestedExpand", {
|
|
771
765
|
return _schema.nestedExpand;
|
772
766
|
}
|
773
767
|
});
|
774
|
-
Object.defineProperty(exports, "nodes", {
|
775
|
-
enumerable: true,
|
776
|
-
get: function get() {
|
777
|
-
return _buildNodesAndMarks.nodes;
|
778
|
-
}
|
779
|
-
});
|
780
768
|
Object.defineProperty(exports, "normalizeHexColor", {
|
781
769
|
enumerable: true,
|
782
770
|
get: function get() {
|
@@ -1048,5 +1036,4 @@ Object.defineProperty(exports, "uuid", {
|
|
1048
1036
|
}
|
1049
1037
|
});
|
1050
1038
|
var _schema = require("./schema");
|
1051
|
-
var _utils = require("./utils");
|
1052
|
-
var _buildNodesAndMarks = require("./buildNodesAndMarks");
|
1039
|
+
var _utils = require("./utils");
|
package/dist/es2019/index.js
CHANGED
@@ -1,4 +1,3 @@
|
|
1
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. */
|
2
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';
|
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';
|
4
|
-
export { nodes, marks } from './buildNodesAndMarks';
|
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';
|
package/dist/esm/index.js
CHANGED
@@ -1,4 +1,3 @@
|
|
1
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. */
|
2
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';
|
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';
|
4
|
-
export { nodes, marks } from './buildNodesAndMarks';
|
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';
|
package/dist/types/index.d.ts
CHANGED
@@ -4,4 +4,3 @@ 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
|
-
export { nodes, marks } from './buildNodesAndMarks';
|
package/package.json
CHANGED
@@ -1,20 +0,0 @@
|
|
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;
|
@@ -1,6 +0,0 @@
|
|
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,12 +0,0 @@
|
|
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 };
|