@atlaskit/adf-schema 29.1.0 → 29.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
package/dist/cjs/schema/index.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
4
5
|
value: true
|
5
6
|
});
|
@@ -345,6 +346,7 @@ Object.defineProperty(exports, "listItem", {
|
|
345
346
|
return _nodes.listItem;
|
346
347
|
}
|
347
348
|
});
|
349
|
+
exports.marks = void 0;
|
348
350
|
Object.defineProperty(exports, "media", {
|
349
351
|
enumerable: true,
|
350
352
|
get: function get() {
|
@@ -423,6 +425,7 @@ Object.defineProperty(exports, "nestedExpand", {
|
|
423
425
|
return _nodes.nestedExpand;
|
424
426
|
}
|
425
427
|
});
|
428
|
+
exports.nodes = void 0;
|
426
429
|
Object.defineProperty(exports, "orderedList", {
|
427
430
|
enumerable: true,
|
428
431
|
get: function get() {
|
@@ -669,8 +672,21 @@ Object.defineProperty(exports, "unsupportedNodeTypesForMediaCards", {
|
|
669
672
|
return _unsupported.unsupportedNodeTypesForMediaCards;
|
670
673
|
}
|
671
674
|
});
|
675
|
+
var _fs = _interopRequireDefault(require("fs"));
|
676
|
+
var _path = _interopRequireDefault(require("path"));
|
672
677
|
var _nodes = require("./nodes");
|
673
678
|
var _marks = require("./marks");
|
674
679
|
var _unsupported = require("./unsupported");
|
675
680
|
var _inlineNodes = require("./inline-nodes");
|
676
|
-
var _createSchema = require("./create-schema");
|
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;
|
@@ -1,6 +1,12 @@
|
|
1
|
+
import fs from 'fs';
|
2
|
+
import path from 'path';
|
1
3
|
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';
|
2
4
|
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
3
5
|
colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette } from './marks';
|
4
6
|
export { unsupportedNodeTypesForMediaCards } from './unsupported';
|
5
7
|
export { inlineNodes } from './inline-nodes';
|
6
|
-
export { sanitizeNodes, createSchema } from './create-schema';
|
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 };
|
package/dist/esm/schema/index.js
CHANGED
@@ -1,6 +1,18 @@
|
|
1
|
+
import fs from 'fs';
|
2
|
+
import path from 'path';
|
1
3
|
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';
|
2
4
|
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
3
5
|
colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette } from './marks';
|
4
6
|
export { unsupportedNodeTypesForMediaCards } from './unsupported';
|
5
7
|
export { inlineNodes } from './inline-nodes';
|
6
|
-
export { sanitizeNodes, createSchema } from './create-schema';
|
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 };
|
@@ -7,3 +7,6 @@ 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